[Debugger] Improve "Global Variables" usability

The current “Global Variables” section displays only the first 10 variables by default, with a “+ Load more” button to incrementally load the next 10. This has usability issues:

  1. Unhelpful Initial Order – The first 10 variables shown are often not the ones I need. The logic used to determine this initial set doesn’t seem helpful for my use case.
  2. Excessive Clicking – To access all global variables, I need to repeatedly click “Load more,” which is tedious. A “Load All” button would be much more efficient.
  3. Unclear Sorting – Once all variables are loaded, they are neither in alphabetical order nor any other predictable sequence, making it difficult to locate a specific variable.

Suggested Improvements:

  • Either immediately show all global variables or hide them completely, providing a single “Load Global Variables” button.
  • Sort variables alphabetically or in another meaningful and predictable order.
5 Likes

A post was split to a new topic: [Debugger] expanded variables are not remembered after executing code

On this feature request, you should find the globals have a consistent order now. (I think that’s 1 and 3 done)

We’ll add load all to our list to explore.

2 Likes