Adding a variable or expression to the Monitors pane

From the Source pane or the Monitors menu, you can add variables and expressions to the Monitors pane, so that you can keep track of how their contents change during program execution. You can add multiple variables and expressions to the Monitors pane from 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. Highlight the variable or expression you want to monitor.
  3. 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:

  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. Click Monitor to add the variable to the monitor.
  4. Repeat steps 2 and 3 until you have added all the variables or expressions you want to monitor.
  5. Click Cancel to dismiss the dialog.

Related References
C/C++ supported data types
C/C++ supported expression operands
C/C++ supported expression operators
Interpreted Java expressions supported
HPC Java supported data types
HPC Java supported expression operands
HPC Java supported expression operators