The Monitors view shows variables, expressions, and registers
that you have selected to monitor. You can enter the variables or
expressions in a dialog box or select them from the Debugger Editor.
Use the Monitors view to monitor global variables - or variables,
expressions, and registers that you want to see at all times during
your debugging session. From the Monitors view, you can also modify
the content of variables, expressions, or registers - or change the
representation of values. Note: The expression support for some programming
languages might depend upon the version of the compiler and/or runtime
for those languages which are installed on your server.
About this task
To add a new Program Monitor for an expression from the
Monitors view:
Procedure
- 1. In the editor, select the source line that represents
the context in which you want to evaluate the expression. Alternatively,
in the Debug view, select the thread that contains the expression
that you want to monitor.
- Click the Monitors view Monitor Expression button
(
).
- In the Monitor Expression dialog box, enter the variable,
expression, or register in the field.
- Click OK.