This documentation is archived and is not being maintained.

Using the Watch Window

Visual Studio .NET 2003

You can use the Watch window to evaluate variables and expressions and keep the results. (For more information, see Evaluating an Expression in the Watch Window.)

You can also use the Watch window to edit the value of a variable or register. (You cannot edit the value of const variables. You can edit and display register values for native-code applications only. The XMM0-XMM7 registers are not supported in the Watch window.) For more information, see Editing a Value in the Watch Window.

Tip   The QuickWatch dialog box provides a quicker, simpler way of evaluating or editing a single variable or expression. For more information, see Using the QuickWatch Dialog Box.
Tip   You can drag variable names and expressions from the code, the Locals window, or the Auto windows to the Watch window.

To display the Watch window

  • From the Debug menu, the Debug menu, choose Windows, then Watch, and click on Watch1, Watch2, Watch3, or Watch4. (The debugger must be running or in break mode.)

You can set the numeric format used in the Watch window and other debugger windows to decimal or hexadecimal.

You can set the numeric format used in the debugger windows to decimal or hexadecimal. For more information, see Changing the Numeric Format of Source Windows.

See Also

Watch Window | Breaking Execution | Expressions in the Debugger | Debugging Tools for Inspecting Your Program | Command Window