# Change Variable Value

Select the Change Value... command [ ] to open a dialog in which you can change the value of the 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.

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.

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

This command applies to:

- Expressions View
- Registers View
- Variables View

Evaluating Expressions