| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
FreeM Extension
Sets a watchpoint on a global, local, or SSVN 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 ^snw(1). It then changes the value of ^snw(1).
DEFAULT.USER> ZWATCH
 
Watchpoints enabled.
 
DEFAULT.USER> ZWATCH +^SNW(1)
 
Added '^SNW("1")' to the watchlist.
 
DEFAULT.USER> SET ^SNW(1)="new value"
 
>> WATCHPOINT:  ^SNW("1") => 'new value' (changed 1 times)
The following example will remove that watchpoint:
DEFAULT.USER> ZWATCH -^SNW(1)
 
Removed '^SNW("1")' from the watchlist.
 
DEFAULT.USER> ZWATCH ?^SNW(1)
 
'^SNW("1")' is not being watched.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
 
  This document was generated on May 19, 2025 using texi2html 5.0.