Traces new instances of a given class, based on access modes.
The class to trace.
Causes new instances of the class given by
to be traced for the access modes given by
The keyword arguments control which type of access are traced, and provide preconditions for tracing, code to run before access, and how to print any trace output. They are interpreted as described for trace-on-access.
This function, when used with the
keyword, replaces the deprecated function break-new-instances-on-access.
Suppose you have a bug whereby the slot
of an instance of your class
is incorrectly being set to a negative integer value. You could cause entry into the debugger at the point where the slot is set incorrectly by evaluating this form:
:when '(and (integerp (car *traced-arglist*))
(< (car *traced-arglist*) 0))
and running your program.
LispWorks User Guide and Reference Manual - 21 Dec 2011