Hide variables in debugger for Visual D

Rainer Schuetze r.sagitario at gmx.de
Fri Feb 21 16:23:56 UTC 2020



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.


More information about the Digitalmars-d-ide mailing list