Next: Deleting Breakpoints, Previous: Breakpoint Behaviours, Up: Intro to Breakpoints
Independently of its behaviour, each breakpoint also keeps track of whether it is currently enabled. This is a straightforward convenience to allow breakpoints to be temporarily switched off without losing all their carefully constructed properties.
If you have a breakpoint instance in hand, you can enable or disable it
using the bp-enabled?
accessor.
Alternatively, you can enable or disable a breakpoint via its location
args by using enable-breakpoint!
or disable-breakpoint!
.
(disable-breakpoint! fact1) ; disable the procedural breakpoint on fact1 (enable-breakpoint! 1) ; enable breakpoint 1
enable-breakpoint!
and disable-breakpoint!
are implemented
using get-breakpoint
and bp-enabled?
, so any
location-args that are valid for get-breakpoint
will work
also for these procedures.