SLIME extension for setting up breakpoints from Emacs.
ℹ️ Please consider using SLIME :star:, that comes with this extension preinstalled.
Load swank
and add this repository path to swank::*load-path*
, in your Lisp compiler init file (~/.sbclrc if using SBCL):
(require :swank)
(push #p"~/slime-breakpoints/" swank::*load-path*)
In Emacs, add this repository path to load-path
and slime-breakpoints
to slime-contribs
in ~/.emacs
init file, like:
(push "~/slime-breakpoints" load-path)
(setq slime-contribs '(slime-fancy slime-breakpoints))
(slime-setup)
These commands require cl-debug-print installed (it is available via Quicklisp).
You can also use from Common Lisp directly. The breakpoints
package exports this functions:
(function-name)
Setup a breakpoint on entry on FUNCTION-NAME.
(function-name)
Wether a breakpoint is installed on FUNCTION-NAME.
nil
Reinstall all breakpoints.
When a function is recompiled, the breakpoint is lost. A call to this function reintalls all breakpoints.
(function-name)
Reinstall breakpoint on FUNCTION-NAME.
When a function is recompiled, the breakpoint is lost. A call to this function reinstalls the breakpoint.
nil
Remove all installed breakpoints.
(function-name)
Remove breakpoint on FUNCTION-NAME.
(function-name)
Toggle breakpoint on FUNCTION-NAME.
SLIME debugger (SLDB) extension that adds debugger context based evaluation directly from Lisp source buffers.
This is a prototype.
Show backtrace frames locals when the ursor over source code.
(require 'sldb-show-frame-local)
(sldb-show-frame-local-on-cursor-move)