Modifying the Value of a Variable
- Open the Local Variables view in the Debugger window.
- Find the variable that you want to change.
- Click in the Value column, type the new value, and press Enter.
Notes
-
In some cases, the Java 2 debugger assigns a pound sign (#) and a number as the variable's value. You cannot edit this value.
This number is an unique identifier of the given instance. You can use this identifier to determine if a variable points to the same or to a different instance.
-
You can also modify the value of a variable or expression
from the Watches view.
Legal Notices