You can view the contents of a variable or expression in the Locals pane or the Monitors pane, if you have added the variable there. By default, all local variables in scope are added to the Locals pane.
To view the contents of a variable or expression in the Locals pane:
To view the contents of a variable or expression you have already added to the Monitors pane:
If a variable or expression is not in scope, a message displays in the Monitors pane instead of a value.
Important:
After exiting a program block, variables out of scope may still be shown in the Locals or
Monitors panes.
You can also view the contents of variables in the Source pane with hover help. To enable hover help, see the related topic below.
Enabling hover help for variables
Adding a variable or expression to the Monitors pane
Viewing a location in storage