Viewing a Value in the Watch Window (Windows Embedded CE 6.0)

1/5/2010

You can view the value of a variable as a program executes.

To view the value of a variable or expression or the contents of a register in the Watch window

  1. Start debugging and then wait for the debugger to pause.

  2. From the Debug menu, choose Windows, Watch, and then choose Watch again.

  3. Select a tab (Watch1, Watch2, Watch3, or Watch4) for the variable or expression.

  4. Type, paste, or drag the variable, register name, or expression into the Name column on the tab (and press ENTER if typing).

    The Watch window evaluates the variable, register name, or expression immediately and displays the value or an error message.

  5. If you add an array or object variable to the Watch window, use the plus (+) or minus (–) boxes that appear in the Name column to expand or collapse your view of the variable.

  6. Change the Watch window display format by using formatting symbols.

  7. To view type information for a variable, select the line containing the variable and then choose Properties from the shortcut menu.

See Also

Reference

QuickWatch Dialog Box

Concepts

Watching Variables and Expressions
Character Formatting of Watch Variables