Editing a Value in the Watch Window

To evaluate a variable or expression

  1. The debugger must be in break mode.
  2. If you typed the name of an array or object variable in the Expression box, a tree control appears next to the name in the Current value box. Click the plus (+) or minus (–) in the Name column to expand or collapse the variable to find the element whose value you want to edit.
  3. Double-click the Value column, in the row corresponding to the variable or expression whose value you want to change.
  4. Use the mouse and keyboard to edit the value.
  5. Press ENTER.

You cannot edit the value of const variables.