Modifying a Variable

  1. In the Debugger window, open the Variables view.

    This view displays all variables that are within the scope of the method in which your program is stopped.

  2. To expand an object and see its contents, click the turner control to the left of the object.
  3. Right-click the variable you want to view and choose Properties.

    The variable's properties, including its type and value, appear in the Properties window.

  4. To modify the value of the variable, select the variable, click in the Value column, type the new value, and press Enter.
Tip You can also modify the value of a variable in the Watches view of the Debugger window.
See also
Watching the Value of a Variable or Expression

Legal Notices