Deactivates a watchpoint, which you can later activate.
Format
DEACTIVATE WATCH [address-expression[, . . . ]]
1 – Parameters
address-expression
Specifies a watchpoint to be deactivated. With high-level
languages, this is typically the name of a variable. Do not
use the asterisk (*) wildcard character. Instead, use the /ALL
qualifier. Do not specify an address expression with /ALL.
2 – Qualifiers
2.1 /ALL
Deactivates all watchpoints.
3 – Description
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
4 – Examples
1.DBG> DEACTIVATE WATCH SUB2\TOTAL
This command deactivates the watchpoint at variable TOTAL in
module SUB2.
2.DBG> DEACTIVATE WATCH/ALL
This command deactivates all watchpoints you have set.