Using the Locals Window

To display the Locals window

The Locals window displays variables local to the current context. The default context is the function containing the current execution location. You can choose an alternative context to display in the Locals window.

To choose an alternative context

To view or modify information in the Locals window, the debugger must be in break mode. If you choose Continue, some information may appear in the Locals window while your program executes, but it will not be current until the next time your program breaks (in other words, it hits a breakpoint or you choose Break from the Debug menu).

To modify the value of a variable in the Locals window

  1. The debugger must be in break mode.
  2. In the Locals window, select the value you want to edit by double-clicking on it or by using the TAB key.
  3. Type the new value, and press ENTER.

    Caution   Editing floating-point values can result in minor inaccuracies due to 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.