Exercise 7.4: Displaying a variable

Before you begin, you must complete Exercise 7.3: Adding and deleting breakpoints.

You can monitor variables in the Monitors view. Now you will monitor the variable CUSTNOI.

To monitor a variable:

  1. In the Source view double-click the variable CUSTNOI on line 22.
  2. Right-click CUSTNOI.
  3. Click Monitor Expression on the pop-up menu.

    The variable appears in the Monitors view.

    If you quickly want to see the value of a variable without adding it to the Monitor, you can place the cursor on a variable to see its value in a pop-up window. This works well for scalars, but not for arrays or data structures.

You have monitored an expression and now you are ready to begin Exercise 7.5: Viewing the call stack.