Changing the contents of a variable
To change the contents of a variable in the Locals or Monitors pane:
- Expand the monitor containing the variable whose value you want to modify.
- If your variable is a class, struct or array, expand it to show its individual elements.
- Scroll down to the variable you want to change and do one of the following:
- Double-click on the variable or variable element.
- Right-click on the variable and select Edit from the pop-up menu.
- Enter a new value for the variable or variable element.

Adding a variable or expression to the Monitors pane