Change Variable Value

Select the Change Value... command [ Change Variable Value ] to open a dialog in which you can change the value of the selected variable or register.

In the Variables View, if variables are displayed in the column form, variable values can also can be changed by directly editing the value in the column.

When debugging a Java program, there are three different types of dialogs that this command can open.

The Change Primitive Value Dialog is used to change the value of a primitive such as an int, long, or char.

Change Primitive Value Dialog

The Change Object Value Dialog is used to change the value of an Object. There are two forms of this dialog.

For most objects you must enter an expression that will be evaluated to generate the resulting value.

Change Object Value Dialog - Expression

However, when editing Java Strings, you may also enter literal text.

Change Object Value Dialog - Literal Text

This command applies to:

Related Tasks

Evaluating Expressions