Expressive Output Window / Debugger - Show instance name instead of reference inside a table

As a Roblox developer, it is currently too hard to interact with tables when an instance is used as an index in a table.

local parts = {}
for i=1, 10 do
	local part = Instance.new("Part", workspace)
	part.Name = "Part" .. i
	parts[part]=i
end

print("Expressive Window:")
print(parts)

print("Correct:")
for i, v in pairs(parts) do
	print(i, "=", v)
end 

… will print:

In the Expressive Output example above, it’s impossible to know which part is being referenced.

If Roblox is able to address this issue, it would improve my development experience because it will allow knowing the correct instance name, not a single reference.

Edit

Also, it would be very important to show the instance names in the index alphabetically ordered.

11 Likes

This request must also be extended to the debugger. When unfolding a table while debugging, the same happens: