Similar to our efforts on the Script Editor last year, we are putting in a lot of focus behind the scenes on the Studio Luau debugger. These efforts will manifest as nice upgrades over the course of this year - capabilities and stability will improve, UI will get nicer and more intuitive, and you will start being able to debug against Team Test servers and eventually get more information from live experiences.
Today, we’re releasing the first batch of changes to the Debugger. These are mostly upgrades to the Watch window, enabling greater insight into program state at breakpoints.
We’ve heard from many of you that it was difficult to see table / metatable contents and length in the “Watch” widget.
To provide insight into variables at a glance, we improved Watch window readability by adding preview of the table/array/instance fields in the value column as follows:
- Table - show fields in the Lua table format, order fields alphabetically
- Array - show items in the Lua table array format, ordered by index
- Instance - show instance name followed by fields in the Lua table format, order fields alphabetically
Show Table Address
To help you uniquely identify tables, table addresses will now be displayed in the value column in the Watch widget, next to the table preview. This will be especially handy for nested and recursive tables.
Object Children Added
Currently, there is no way to inspect children of the instance that appear in the Watch widgets. To fix this, we added the “Children” pseudo item to instance in the Watch widget. This instance will show items returned by the