You can watch a variable or expression while debugging by adding
its name to the Watches tab of the Debugger window. You have
two ways to do this. You can type the name in the Add Watch dialog box
(which you open by choosing Debug Add Watch).
Or, you can select the variable or expression directly in the Source
Editor, right-click, and choose Add Watch from the contextual menu.
A watch describes the content of a variable. Using the contextual menus in the Watches tab, you can create a fixed watch, which describes the object that is currently assigned to the variable. In the Watches tab, you can also modify the value of a variable.
See also | |
---|---|
Creating a Fixed Watch |