Watch Window

The Watch window is used to set values for variables.

You can use the Watch window to test your code and shows values of variables, or query or change the value of a variable while the code is running. When execution is stopped, set the variable to a new value as you would in code.

    To display variable values

  1. Put the cursor on the first empty space in the Watch window.
  2. Enter the name of the variable.
  3. To see a value for this variable, you must pass the location in your code where your variable has some value.