Changing the value of a variable or expression

To change the value of a variable in the Watch view:

Step 1: Double click a variable or right click a variable and select Edit Variable. The Modify Value dialog box will be displayed.

Step 2: In the Modify Value dialog box, type a new value for the variable in the New Value box, click OK to close the Modify Value dialog box and continue debugging the application with the variable set to the new value.

Figure 71. Modify value

Modify value

To modify an expression in the Watch view:

Step 1: Double-click an expression or right click an expression and select Edit Expression. The Modify Expression dialog box will be displayed.

Step 2: In the Modify Expression dialog box, type the new expression in the New Value box and click OK.

Notice that it is unsupported to select the Null check box in the Modify Value or Modify Expression dialog to set the value of the variable or expression to null.