### Local Variables Monitor

Use the Local Variables monitor to view all local variables for the current scope. The Source window for each thread of your program has its own Local Variables monitor.

To open a Local Variables monitor for a given thread, highlight that thread in the Threads pane of the Session Control window, or select the Source window for that thread; then choose Monitors->Local variables.

From within a Local Variables monitor, you can select one or more variables, and access a popup menu to apply changes to them. For example, you can delete a variable from the monitor, change its representation, or edit its contents.

Expressions and variables that have a "+" on their left can be expanded, and those with a "-" can be collapsed. Arrays and C++ class objects, for example, are displayed by default in expanded format, with entries both for the array and for elements within it. To expand a collapsed list, or collapse the list of elements, double-click on the "+" or "-", or place the cursor on that line and press the Enter key.

Pointers are displayed with a ">" on their left. You can change an array or class object to pointer representation by dereferencing it. You can display the value of the pointer, or the start of the memory it points to, by choosing a different representation for it.

Add Expressions and Variables to a Monitor
View Variable Contents
Edit Variable Contents