Adding a variable or expression to the Monitors pane
If you want to keep track of the contents of variables and expressions during
program execution, add them to the Monitors pane. You can add variables and
expressions to the Monitors pane from the Source Pane or the
Monitors menu.
Local variables that are in scope can also be monitored in the Locals pane. By default,
all local variables in scope are added to the Locals pane.
To add a variable or expression to the Monitors pane from the Source pane:
- Ensure the Source pane is set to source view.
To set the Source pane to a source view, select Source > Source View
from the menu bar.
- Do one of the following:
- Ensure that Add to program monitor in the Preferences > Debug
menu is selected and then double-click the variable or expression you want
to monitor.
- Double-click or highlight the variable or expression you want to monitor
and then right-click on the highlighted variable, and select Add to Program
Monitor from the pop-up menu.
To add a variable or expression to the Monitors pane from the Monitors menu:
- Select Monitors > Monitor Expression from the menu bar.
- In the dialog, enter the variable or expression you want to monitor.
- Select the Program monitor radio button.
- Click OK to add the variable or expression to the monitor and dismiss
the dialog.
To add multiple variables or expressions to the Monitors pane from the Monitors menu:
- Select Monitors > Monitor Expression from the menu bar.
- In the dialog, enter the variable or expression you want to monitor.
- Select the Program monitor radio button.
- Click Monitor to add the variable to the monitor.
- Repeat steps 2 to 4 until you have added all the variables or expressions you want to
monitor.
- Click Cancel to close the dialog.

C/C++ supported data types
C/C++ supported expression operands
C/C++ supported expression operators
Supported data types for Java programs
Supported expressions for Interpreted Java programs