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:

  1. 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.
  2. Do one of the following:

To add a variable or expression to the Monitors pane from the Monitors menu:

  1. Select Monitors > Monitor Expression from the menu bar.
  2. In the dialog, enter the variable or expression you want to monitor.
  3. Select the Program monitor radio button.
  4. 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:

  1. Select Monitors > Monitor Expression from the menu bar.
  2. In the dialog, enter the variable or expression you want to monitor.
  3. Select the Program monitor radio button.
  4. Click Monitor to add the variable to the monitor.
  5. Repeat steps 2 to 4 until you have added all the variables or expressions you want to monitor.
  6. Click Cancel to close the dialog.

Related References
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