lisp - Turn-off debugger in Emacs SLIME -


according this question, can customize variable *debugger-hook* falls toplevel (in repl) instead of debugger. i've added line ~/.sbclrc , it's fine when start sbcl command line.

(setf *debugger-hook* #'(lambda (c h) (declare (ignore h)) (print c) (abort))) 

but, above doesn't work emacs slime. whenever compile/load file (c-c c-k), still invokes debugger (with options abort calculation, restart, enter new value etc.). how can ask slime print error message , throw me toplevel? yea, it's sbcl , same ~/.sbclrc before. looks slime doesn't respect user's setting of *debugger-hook*.

as per http://common-lisp.net/project/slime/doc/html/other-configurables.html setting swank:*global-debugger* nil in ~/.swank.lisp file should force slime not replace *debugger-hook* swank:swank-debugger-hook (which shows list of restarts etc.), somehow doesn't work me, i.e. swank:*global-debugger* nil anyway *debugger-hook* replaced slime. maybe you'll more lucky.

as workaround can propose set *debugger-hook* whatever want in slime-repl buffer manually, worked me.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -