Debugging Tools for Windows

Locals Window

The Locals window displays information about all of the local variables in the current scope.

Opening the Locals Window

To open or switch to the Locals window, in the WinDbg window, on the View menu, click Locals. (You can also press ALT+3 or click the Locals (ALT+3) button () on the toolbar. ALT+SHIFT+3 will close the Locals window.)

The following figure shows an example of a Locals window.

The Locals window can contain four columns. The Name and Value columns are always displayed, and the Type and Location columns are optional. To display the Type and Location columns, click the Typecast and Locations buttons, respectively, on the toolbar.

Using the Locals Window

In the Locals window, you can do the following:

Toolbar and Shortcut Menu

The Locals window has a toolbar that contains two buttons (Typecast and Locations) and a shortcut menu with additional commands. To access the menu, right-click the title bar of the window or click the icon near the upper-right corner of the window (). The toolbar and menu contain the following buttons and commands:

Additional Information

For more information about controlling local variables, an overview of using variables and changing the scope, and a description of other memory-related commands, see Reading and Writing Memory. For more information about docked, tabbed, and floating windows, see Positioning the Windows. For more information about all techniques that you can use to control debugging information windows, see Using Debugging Information Windows.

Build machine: CAPEBUILD