PhpStorm 8.0.2 Help

Debug Tool Window. Variables

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
  • Types of Variables

Context menu options

Item Shortcut Description
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 F2 This command enables you to change the runtime value of a field or variable.
Jump to Source F4 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.
Show Referring Objects Choose this command to display the list of objects referring to the current variable.
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 its contents at the tooltip.

Types of variables

Icon Description
1_debuggerField.png Field
1_debuggerArray.png Array
1_debuggerPrimitive.png Primitive type

See Also

Last modified: 29 January 2015