Allow the quick inspection of a resulting value of a (selected) expressions while debugging

As a Roblox developer, it is currently too hard to watch a value in a complex expression while debugging.

For example, if during debugging I come across the following expression: MyTable[UserId][SomeName].SomeValue or ((a + b * c) ^ 2) and I want to watch the resulting value, I have to:

  1. Select the entire expression
  2. Right-Click
  3. Add Watch
  4. Go to the Watch window
  5. Switch to the “My Watches” tab
  6. Search visually for the expression previously added
  7. And to make matters worse if I advance a line in debugging, the focus of the My Watches list is lost and I have to search the entire list again.

Currently, Studio already allows you to query a value by hovering the mouse over a simple variable.

My suggestion is:

  1. Select expression to be inspected
  2. Hover the mouse over the selection
  3. Studio will show the result at the mouse location, as it already does with single variables

For example, when debugging this code:

local d = {a = 1, b = 2}
local aa = 'a'
local bb = 'b'
if d[aa] == 1 and d[bb] == 2 then
    print('ok')
end

… and I want to inspect the result of the expression d[aa] == 1 and d[bb] == 2, I’d just select the expression and hover the mouse over the selection:

… and instead of the single result shown next to the mouse as the example above, it should show the result as shown in “My Watches”, since it’s about the selected expression.

If Roblox is able to address this issue, it would improve my development experience because this will make the process of debugging and inspecting values much easier.

8 Likes

Thanks so much for your feedback. I hear you!

We are currently using “Hover Over” & tooltips to show Luau type of variables. We need to think through how to simplify “MyWatch” workflow, increase readability while not overloading the tooltip in script editor.

In the upcoming “Intuitive debugger” (beta release in Q1 2022), we will provide you a better Watch experience.

5 Likes

@IcyTides
Since Intuitive Debugger has already been imposed as the official debugging platform, I highlight this suggestion from almost 2 years ago to improve the debugging experience.

2 Likes

Hovering over a selected expression should evaluate it in the debugger tooltip now.

2 Likes

Thanks again for your notice!
I hope that one day Roblox will be able to organize itself and notify users about released modifications.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.