Viewing the contents of a variable or expression in the Monitors view

The Monitors view shows variables or expressions that you have selected and wish to monitor at all times. As long as the value of the variable or expression can be determined, its value will be shown.

About this task

To view the contents of a variable or expression you have already added to the Monitors view:

Procedure

  1. Use the scroll bars to scroll the view until the variable is visible.
  2. If your variable is a class, struct or array, it can be expanded to show its individual elements.
  3. If desired, change the representation of the variable: right-click on the variable and select Change Representation from the pop-up menu. Then select the desired representation from the resulting pop-up selection. A check mark will appear beside the current representation.

Results

Nodes in the Monitors view are visible if they are at the top level of the tree structure, or if the nodes a level higher have been expanded. For all nodes that are visible in this view, you can jump to a specific node by typing the first letter of the node. The view jumps to the next node that begins with that letter. If this node is not the node that you wanted to jump to, type the first letter again to jump to the next node that begins with the letter, and so on.

Note: If you are in the Monitors view and want to copy a value (eg. for pasting elsewhere), you must edit the value before you can copy it. To edit a value in the Monitors view, double-click on it.

What to do next

The Monitors view shows variables you have designated. To inspect all variables for a selected call stack entry, use the Variables view.

Feedback