Modifying the Value of a Variable

Once you pause execution of your program, you can modify the value of a variable in the program.

To change a the value of a variable:

  1. In the Debugger window, select the node that represents the variable. You can modify a variable from the Watches view, Variables view, Threads View, or Call Stack view.
  2. Right-click and choose Properties.

    The variable's properties are displayed in the Properties window.

  3. Click in the Value column, type the new value, and press Enter.
Tip As a shortcut, you can click the selected node a second time. The name of the node is replaced with the variable's value, and you can edit the value.
See also
Watching the Value of a Variable or Expression

Legal Notices