Creating a Watch
See Also
A watch enables you to track the changes in the value of a variable or expression during program execution.
You can create a watch directly from the Source Editor or by using the New Watch dialog box.
To create a watch from the Source Editor:
- Select the variable or expression in the Source Editor, right-click,
and choose New Watch.
The New Watch dialog box opens with the variable or expression entered in the text field.
- Click OK.
To create a watch using the New Watch dialog box:
- From the main menu, choose Debug
New Watch.
- In the New Watch dialog box, type the variable or expression.
- Click OK.
Notes
-
When you specify an expression, follow the syntax rules of the
debugger that you are using.
-
When you create a watch, the value of the variable or expression is immediately evaluated and displayed in the Watches window. The value of the watch is based on the current context. When you change the current context, the Watches window is updated to show the value of the watch for that context.
Legal Notices