A variable belongs to some context
The choice Local / Global is restrictive.
What about a full view of the variables with name and context?
The global view could show :
- really global variables,
- static ones on a file/function basis (v6 - see :
http://forum.pellesc.de/index.php?topic=3014.0)
The local view could show variables on a file/function and execution stack basis.
Grouping variables by file/function and execution stack is usefull.
When something goes wrong, the initial fault may have occured several thousands of instructions before and may be contained in a variable that still exists.
I dream about a debugger able to display all existing variables in an non ambiguous way.