In the following example, a watchpoint is set on variable n with an action-list to continue program execution. The value of n is input from the user.
CodeWatch> WATCH n /ACTION [C] CodeWatch> CONTINUE Input maximum prime boundary: 10 Program Stopped due to a Watchpoint Watched variable N modified about line PRIMES\118 New Value: 10 {fixed binary (31)} Break at PRIME\119
Description
A watchpoint is incurred when a watched variable has changed, the skip counter is either zero or not specified, and the Ignore option is not specified. When a watchpoint is encountered, the following occurs: