When a thread suspends, the top stack frame of the thread is automatically selected. When a stack frame is selected, the visible variables in that stack frame are displayed in the Variables view. Complex variables can be expanded to show the elements that make up the variable.
Variable values can be changed in the Variables view by clicking the value of the variable in the Value column and changing the value inline - or by performing these steps:
The Variables view displays all variables for a selected stack frame. It dynamically shows the variables in the current scope and they will appear and disappear as the program is stepped or resumed. As an alternative to the Variables view, you can monitor variables in the Monitors view - where the debugger always shows their value (if it can be obtained). To view and inspect one or multiple variables at a time, right-click the variable or variables and select Monitor Local Variable from the pop-up menu to work with the variables in the Monitors view.
Depending on the language that you are debugging, you can filter the Variables view to display certain variables only. To do this, right-click in the Variables view and select an entry from the Filter Locals submenu.