All Manuals > LispWorks® User Guide and Reference Manual > 31 The CLOS Package

break-on-access Function

Summary

Breaks to the debugger when an instance of a class is accessed. Note that this function is deprecated.

Package

clos

Signature

break-on-access instance &key read write slot-names when process trace-output entrycond eval-before before backtrace => instance

Arguments
instance
A CLOS instance.
read
A generalized boolean.
write
A generalized boolean.
slot-names
A list of symbols, or t.
when
A form.
process
A form.
trace-output
A form.
entrycond
A form.
eval-before
A list of forms.
before
A list of forms.
backtrace
A keyword, t or nil.
Values
instance
A CLOS instance.
Description

The function break-on-access is a useful debugging function which causes access to instance to break to the debugger. Accesses include calls to slot-value and also accessor functions defined by the class of instance. Other instances of the same class are unaffected.

The keyword arguments read, write, slot-names, when, process, trace-output, entrycond, eval-before, before and backtrace control which type of access cause a break and are interpreted as described for trace-on-access.

You can remove the break by calling unbreak-on-access.

A common use of this function is to find where a slot is being changed in a complex program.

Note: this function is deprecated. You should now call trace-on-access with :break t instead.

See also

trace-on-access


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:25