Local Variables Window

See Also 

The Local Variables window lists the local variables in the current stack frame. By default, the Local Variables window opens automatically whenever you start a debugging session. You can open the Local Variables window by choosing Window > Local Variables.

If you open the Local Variables window when a debugging session is running, it closes automatically when you end the debugging session. If you open the window when no debugging session is running, it stays open until you close it.

The information given for each variable includes the variable name, type, and value. You can click the control to the left of the name to expand or collapse the variable. If the object type is displayed in blue underlined text, clicking the text jumps to the object type in the source code. You can click the Value cell to edit the value directly in the Local Variables window.

In some cases, the debugger assigns a pound sign (#) and a number as the variable's value. This number is a unique identifier of the given instance. You can use this identifier to determine if a variable points to the same or to a different instance. You cannot edit this value.

Icons

The following table describes the icons displayed to the left of the object name.
Icon Description
Local variable
Container for a superclass
Static field of an object
Non-static field of an object

Actions

If you right-click inside the Local Variables window, the pop-up menu displays the following choices:
Menu Item Description
Inherited Members Includes inherited members when debugging a C++ program.
Dynamic Type Automatically casts C++ variables to dynamic type.
Set Max Object Size Allows you to increase the default maximum variable value of 4096 bytes.
List Options Enables you to customize the display of the Local Variables window, including adding and removing columns of information, reordering the columns, and sorting the columns.
See Also
Current Context in the Debugger
Variables and Expressions
Debugger Windows

Legal Notices