Editing a Value in the Watch Window
To evaluate a variable or expression
- The debugger must be in break mode.
- 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.
- Double-click the Value column, in the row corresponding to the variable or expression whose value you want to change.
- Use the mouse and keyboard to edit the value.
- Press ENTER.
You cannot edit the value of const variables.