Watchpoints are activated when you set them with the SET WATCH
command. Use the DEACTIVATE WATCH command to deactivate one or
more watchpoints.
If you deactivate a watchpoint, the debugger ignores the
watchpoint during program execution. To activate a deactivated
watchpoint, use the ACTIVATE WATCH command. Activating and
deactivating watchpoints enables you to run and rerun your
program with or without watchpoints without having to cancel
and then reset them.
By default, the RERUN command saves the current state of all
static watchpoints (activated or deactivated). The state of
a particular nonstatic watchpoint might or might not be saved
depending on the scope of the variable being watched relative to
the main program unit (where execution restarts).
To check if a watchpoint is deactivated, use the SHOW WATCH
command.
Related commands:
CANCEL ALL
RERUN
(SET,SHOW,CANCEL,ACTIVATE) WATCH