The Variables pane enables you to examine the values stored in the objects of your application.
When a stack frame is selected in the Frames pane, the Variables pane displays all the data within its scope (method parameters, local and instance variables).
In this pane you can set labels for the objects, inspect objects, evaluate expressions, add variables to watches and more.
In this topic:
Context menu options
|Inspect||This command is available for fields, local variables and reference expressions, and opens a non-modal Inspection window, where you can concentrate on a particular reference. You can open as many Inspection windows as required. The view in the Inspection window is the same as in the Watches pane, but requires less screen space.|
|Set Value||F2F2F2F2F2 or Ctrl+X, Back QuoteF2F2 or Ctrl+PeriodF2F2F2Command Period||This command enables you to change the runtime value of a field or variable.|
|Jump to Source||F4F4F4F4F4F4F4F12 or Ctrl+Shift+ECommand Down or F4F4F3||This command opens the source code of the selected variable or field in the editor and places the caret on a proper line.|
|Add to Watches||This command is available for all nodes except static. Use this command to create an expression that references the node and add this expression to the Watches pane.|
|Copy Value||Use this command to copy the value of a node to the Clipboard.
If a string value is too long to fit in the stack frame view, it is truncated. You can use this command to copy the value to the Clipboard, and then paste it to the editor, where you can examine the contents. Alternatively, hover your mouse cursor over the value and view the contents at the tooltip.
Types of variables