| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Sets a watchpoint on a global, local, or SSV node.
Syntax
In its argumentless form, ZWATCH toggles watchpoints on and off, provided the optional postcondition is true or omitted.
ZWATCH:postcondition |
In its inclusive form, ZWATCH adds, removes, or examines watchpoints, provided the optional postcondition is true or omitted.
A + adds a new watchpoint to the following variable.
A - removes an existing watchpoint for the following variable.
A ? examines the status of a watchpoint for the following variable.
ZWATCH:postcondition [+|-|?]var1...,[+|-|?]varN |
The following example demonstrates turning watchpoint processing on and adding a watchpoint for global variable ^jpw(1). It then changes the value of ^jpw(1).
USER [LEGACY]> ZWATCH
Watchpoints enabled.
USER [LEGACY]> ZWATCH +^JPW(1)
Added '^JPW("1")' to the watchlist.
USER [LEGACY]> SET ^JPW(1)="new value"
>> WATCHPOINT: ^JPW("1") => 'new value' (changed 1 times)
|
The following example will remove that watchpoint:
USER [LEGACY]> ZWATCH -^JPW(1)
Removed '^JPW("1")' from the watchlist.
USER [LEGACY]> ZWATCH ?^JPW(1)
'^JPW("1")' is not being watched.
|
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by John P. Willis on October 17, 2020 using texi2html 1.82.