You can change the representation of a variable in any view that lets you edit the variable's contents, for example in a Local Variables view or in a Monitored Expressions view. Follow these steps to change a variable's representation in such a view:
For compound variables such as class objects and arrays, you can expand the variable (object or array) to display components, and then change the representation of individual components.
You can change the representation of a class between flattened (in which the members of all inherited classes are shown, without the information for their class) and nested (in which each inherited class is shown as a separate, expandable entry within the class).
You can change the representation of a pointer to show a pointer, the object pointed to, or to show an array of objects. The representation of pointers to char and wchar can also be changed to show a string.
![]()
Add a Variable to the Monitored
Expressions View
Add a Variable to the Monitored Values
View
Change the Contents of a Variable
![]()
Available Representations for
Variables
