Watching Variables

You can watch the values of variables while stepping through a program by opening Quincy's Watch Window and programming variables you want to watch.

Opening the Watch Window

To open the Watch window:

  1. Click the Watch tool button.
  2. Or press Ctrl+W.
  3. Or choose the Watch command on the Debug menu.

Any of these actions opens the Watch Window shown here.

Adding a Watch Variable

To add a watch variable:

  1. Click the Add Watch button.
  2. This action opens the Add Watch dialog shown here.

  3. Enter the identifier of the variable you want to watch in the Variable field.
  4. Click OK.

The variable name is added to the Watch Window's list. As you step through the program, the Watch Window displays the variable's current value as shown here.

You can enter an expression to watch, too. If the expression cannot be evaluated in the current scope of the program, the watch value displays as ??. Otherwise the value returned by the expression displays as shown here.

If an expression has side effects, they come into play when the watch is evaluated each time you step through the program or when breakpoints occur.

Deleting a Watch Variable

To delete a watch variable from the Watch Window:

  1. Select the variable you want to delete by clicking it.
  2. Click the Delete Watch button.

Closing the Watch Window

To close the Watch Window:

  1. Click the Close command on the Watch Window.

Closing the Watch Window does not delete any of the programmed watch variables.

Reopening the Watch Window

You can reopen the Watch Window at any time as described in Opening the Watch Window or by choosing the Watch Window command on the View menu.


<--previous page next page-->