About this task
To add an expression to the Monitors view:
Procedure
- 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 expression in the field.
- Click OK.
Results
To add an expression from the editor:
- In the editor, highlight and right-click the expression that you want
to monitor.
- 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.