Reputation: 39
When going though my code with the debugg, you are able to see the variable and their values etc etc.
However, if an array has 200 odd variables or if an object has 300+ defs for it. It takes ages to find it straight away (once i find the variable i need, i put it under my watch list)
My questions is: How can you list the variable in alphabetical order or in any order at all within the debug variables list?
Upvotes: 1
Views: 164
Reputation: 165511
Debug tool window has an option to sort variables/array keys alphabetically. For that -- activate that option via "cog" icon:
NOTE: you can add that option as separate button on debug toolbar (look for A-Z icon on screenshot above) if you need to turn this option ON or OFF often. This can be done via Settings/Preferences | Appearance & Behaviour | Menus and Toolbars
.
Standard in place search works there (in variables panel) as well. For that just start typing while panel has focus.
NOTE that search looks trough already expanded nodes only (just like in other places) -- it will NOT open nodes for you (e.g. if you are trying to find variable/key that is located in closed node then it will not be found).
Upvotes: 2