This documentation is archived and is not being maintained.

Using the Autos Window

Visual Studio .NET 2003

The Autos window displays variables used in the current statement and the previous statement. (For Visual Basic, it displays variables in the current statement and three statements on either side of the current statement.)

The current statement is the statement at the current execution location (the statement that will be executed next if execution continues). The debugger identifies these variables for you automatically, hence the window name.

Structure and array variables have a tree control that you can use to display or hide the elements.

To display the Autos window

  • From the Debug menu, choose Windows and click Autos. (The debugger must be running or in break mode.)

To modify the value of a variable in the Autos window

  1. The debugger must be in break mode.
  2. Display the Autos window, if necessary.
  3. In the Value column, double-click the value you want to change

    -or-

    Single-click to select the line, then press the TAB key.

  4. Type the new value, and press ENTER.
    Caution   Editing floating-point values can result in minor inaccuracies because of decimal-to-binary conversion of fractional components. Even a seemingly innocuous edit can result in changes to some of the least significant bits in the floating-point variable.

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

Autos Window | Breaking Execution | Debugging Tools for Inspecting Your Program

Show: