Go backward to Displaying working memory.
Go up to Displaying working memory.
Go forward to object-trace-format.

print, p, wm
------------


SYNTAX

(print [:depth n] [:internal] arg*)
(p ...) is a shorthand for (print ...)
(wm ...) is shorthand for (print :depth 0 :internal ...)

arg ::= production-name  (print that production)
arg ::= identifier       (id of the object to print)
arg ::= integer          (timetag of wme--the identifier from the wme
                          indicates the object to be printed)
arg ::= pattern          (pattern--same as if you listed as arguments
                          the timetags of all wmes matching the pattern)

pattern ::= ( {identifier | `*'} ^ { attribute | `*'} { value | `*' } [+])


The optional :depth n argument overrides default-print-depth.

The optional :internal argument tells Soar to print things in their internal
form.  For productions, this means leaving conditions in their reordered
(Rete net) form.  For wmes, this means printing the individual wmes with
their timetags, rather than the objects.

:depth 0 is meaningful only for integer and pattern arguments, and must be
used along with :internal.  It causes just the matching wmes to be printed,
instead of all wmes whose id is an id in one of the matching wmes.