Activates a watchpoint that you have previously set and then
deactivated.
Format
ACTIVATE WATCH [address-expression[, . . . ]]
1 – Parameters
address-expression
Specifies a watchpoint to be activated. 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
Activates all watchpoints.
3 – Description
Watchpoints are activated when you set them with the SET WATCH
command. Use the ACTIVATE WATCH command to activate one or more
watchpoints that you deactivated with DEACTIVATE WATCH.
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 activated, use the SHOW WATCH
command.
Related commands:
CANCEL ALL
RERUN
(SET,SHOW,CANCEL,DEACTIVATE) WATCH
4 – Examples
1.DBG> ACTIVATE WATCH SUB2\TOTAL
This command activates the watchpoint at variable TOTAL in
module SUB2.
2.DBG> ACTIVATE WATCH/ALL
This command activates all watchpoints you have set and
deactivated.