Next Prev Up Top Contents Index

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 => t

Arguments

The keyword arguments control which type of access cause a break:

read

Non- nil means break on reading a slot. The default is t .

write

Non- nil means break on writing a slot. The default is t .

slot-names

t means break on all slots, otherwise this should be a list of symbols which are the slot-names on which to break. The default is t .

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

Values

Returns t .

Description

A useful debugging function which causes access to instance to break to the debugger. Accesses include calls to slot-names and accessor function defined by the class of instance . Other instances of the same class are unaffected and your can remove the break by calling clos:unbreak-on-access . Breaks to the debugger when an instance of a class is accessed. Note that this function is deprecated. You should now use trace-on-access instead.

See also

trace-on-access


LispWorks Reference Manual (Windows version) - 14 Dec 2001

Next Prev Up Top Contents Index