Changing the contents of a variable
Note:
The contents of variables cannot be changed when debugging an interpreted Java program.
To change the contents of a variable in a Locals pane or Monitors pane:
- Expand the monitor containing the variable whose value you want to modify.
- If your variable is a class, struct or array, expand it to show its individual elements.
- Scroll down to the variable you want to change and do one of the following:
- Double-click on the variable or variable element.
- Right-click on the variable and select Edit from the pop-up menu.
- Enter a value that is valid for the current representation of that variable or variable
element.
- Press Enter to submit the change. The debug engine checks for a valid value.

Adding a variable or expression to the Monitors pane