Watch Command (View Menu)

Use the Watch window to examine and change the values of variables while the program is running or paused. This capability can be useful to you when you are debugging a program. The Watch window contains the variable's name, type, and value.

To check the value of a variable using the Watch window, you must enter a variable name into it, run your program, and then pause it using the Pause key (F4) or a breakpoint. After you pause the program, you may change the value of any of the variables displayed in the Watch window. For more information on using the Watch window, see Watch Window.

Shortcut: ALT+4