Re: Dynamically prevent slime debugger
Xiaofeng Yang <[email protected]>
| Newsgroups | gmane.lisp.slime.devel |
|---|---|
| Message-ID | <CAJ+N7G=Y=eLFYWjLV5rwrajutNgiWosPSvJd7m0FDKAR0F8gEA@mail.gmail.com> |
You could change the *debugger-hook* variable to handle the conditions as
what you want, e.g.
(defvar *use-slime-debugger* t)
(setq *debugger-hook*
(let* ((slime-debugger-hook *debugger-hook*)
(new-debugger-hook (lambda (&rest
args)
(if *use-slime-debugger*
(apply slime-debugger-hook
args)
; do what you want
))))
new-debugger-hook))
But be aware, there might be additional problems you could meet.
Best regards,
Xiaofeng Yang
2014-03-06 7:19 GMT+08:00 Christopher Laux <[email protected]>:
> Hi,
>
> is there a good way to prevent slime (or rather swank) from dropping into
> the slime debugger depending on the value of a variable? Specifically I
> want to limit the number of open debugger windows to 1 and simply log all
> further simultaneous errors. Any help appreciated,
>
> Chris
>
>