A watch enables you to track the changes in the value of a variable or expression during program execution. The Watches window lists all of the watches you have defined for all of your IDE projects.
You can open the Watches window by choosing Window > Debugging > Watches (Alt-Shift-2). You can create a watch directly from the Source Editor.
To create a watch from the Source Editor:
Select the variable or expression in the Source Editor and choose Run > New Watch.
The New Watch dialog box opens with the variable or expression entered in the text field.
Click OK.
The Watches window opens with the new watch selected.
Notes:
See Also | |
---|---|
C and C++ Variables and Expressions in the IDE |