www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Hide variables in debugger for Visual D

reply AlphaPurned <Alpha Beta.com> writes:
Sometimes I have temp like variables or just don't want to 
clutter up the auto's or local's. Could you add some simple way 
to hide a variable from being displayed?

e.g.,
pragma(VisualD, hide_variable, "axss");

would never show axss or show it in a separate expandable folder. 
(it would be nice to still be able to see it when desired without 
having to modify pragma)

Things kinda get cluttered in the windows. I know I could add 
watches but that can be a pain too.
Feb 20
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 20/02/2020 23:03, AlphaPurned wrote:
 Sometimes I have temp like variables or just don't want to clutter up
 the auto's or local's. Could you add some simple way to hide a variable
 from being displayed?
If you prefix your variable with a double underscore "__" they are hidden unless the respective switch on the mago settings is checked.
 
 e.g.,
 pragma(VisualD, hide_variable, "axss");
That would be a change to the compiler.
 
 would never show axss or show it in a separate expandable folder. (it
 would be nice to still be able to see it when desired without having to
 modify pragma)
Watching the variable explicitly should still work.
 
 Things kinda get cluttered in the windows. I know I could add watches
 but that can be a pain too.
Feb 21