next up previous

13.2.5 Viewing the Current State of Watch Items

This command displays the current state of watch items.

Syntax

(list-watch-items [<watch-item>])

This command displays the current state of all watch items. If called without the <watch-item> argument, the global watch state of all watch items is displayed. If called with the <watch-item> argument, the global watch state for that item is displayed followed by the individual watch states for each item of the specified type which can be watched. This function has no return value.

Example

CLIPS> (list-watch-items)
facts = off
instances = off
slots = off
rules = off
activations = off
messages = off
message-handlers = off
generic-functions = off
methods = off
deffunctions = off
compilations = on
statistics = off
globals = off
focus = off
CLIPS> (list-watch-items facts)
facts = off
MAIN:
   initial-fact = off
CLIPS>


next up previous