During debugging, you can add variables and symbols to the Watch View list.
To start watching a variable from code:
- Click and drag the mouse cursor to highlight the variable in your code.
-
Right-click and choose Add to Watch.
The Watch View list is updated with the variables you added, like in the following example. -
Click the Start/Continue button in the debugging control bar to watch the debugger go through the code until it stops at a variable breakpoint.
The value of the watched variables is shown in the Watch View.
To start watching a variable from Global Data View:
-
Locate the variable you want to watch in the Global Data View.
Tip
Use the View's toolbar actions to choose how you want to group the variables.
-
Click the variable to select it.
-
Click the Add Symbol to Watch button.
The variable is added to the Watch View list.
-
Click the Start/Continue button in the debugging control bar to watch the debugger go through the code until it stops at a variable breakpoint.
The value of the watched variables is shown in the Watch View.