[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.40 WATCH

FreeM Extension

Sets a watchpoint on a global, local, or SSVN node.

Syntax

In its argumentless form, WATCH toggles watchpoints on and off, provided the optional postcondition is true or omitted.

WATCH[:postcondition]

In its inclusive form, WATCH 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.

WATCH[: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> WATCH
 
Watchpoints enabled.
 
USER> WATCH +^JPW(1)
 
Added '^JPW("1")' to the watchlist.
 
USER> SET ^JPW(1)="new value"
 
>> WATCHPOINT:  ^JPW("1") => 'new value' (changed 1 times)

The following example will remove that watchpoint:

USER> WATCH -^JPW(1)
 
Removed '^JPW("1")' from the watchlist.
 
USER> WATCH ?^JPW(1)
 
'^JPW("1")' is not being watched.

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on September 20, 2023 using texi2html 5.0.