Adding a variable or expression to the Monitors view

About this task

To add an expression to the Monitors view:

Procedure

  1. In the Debug view, select the thread that contains the expression that you want to monitor.
  2. Click the Monitors view Monitor Expression button.
  3. In the Monitor Expression dialog box, enter the expression in the field.
  4. Click OK.

Results

To add an expression from the editor:

  1. In the editor, highlight and right-click the expression that you want to monitor.
  2. Select Monitor Expression from the pop-up menu.
Note: If you wish to monitor an array, entering array[subelement number] will cause the array to be monitored at that subelement number. In this case, array is the array expression and [subelement number] is a valid subelement number for the array. For example, entering the array Array[5] will cause the expression, Array, to be monitored at its 5th subelement.

Feedback