Breaks to the debugger when an instance of a class is accessed. Note that this function is deprecated.
clos
break-on-access instance &key read write slot-names when process trace-output entrycond eval-before before backtrace => instance
| 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. |
| instance |
A CLOS instance. |
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.
LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:10