View Variables in Other Scopes

Access Analyzer | Watches

Analyzer | Execution Analyzer: | Watches




See also


The Watches window is most useful for native code (C, C++, VB) where it can be used to evaluate data items that are not available as Local Variables - data items with module or file scope and static Class member items.

You can also use the window to evaluate static Class member items in Java and .NET

To add a watch, type the name of the variable to in the toolbar, and press the Enter key.

To examine a static Class member variable in C++, Java or Microsoft .NET, enter its fully qualified name:


To examine a C++ data symbol with module or file scope, just enter its name.

Variables are evaluated by looking at the current scope; that is, the module of the current stack frame (you can change the scope at a breakpoint by double-clicking the frame in the Call Stack).

If the global variable exists in a different module, you can examine the variable by prefixing the module name to the variable


The history of items entered is saved. Previously entered names or expressions can be selected again using the up and down arrow keys.

View the Local Variables View Debug Variables in Code Editors View Elements of Array Inspect Process Memory

Learning Center topics

  • Alt+F1 | Enterprise Architect | Build and Debug | Debug | View Global Variable