What's the best way to initialise a Lisp session (I'm using Slime and sbcl) such that functions are always compiled with the maximum amount of debug information?
Asked
Active
Viewed 1,444 times
1 Answers
15
(sb-ext:restrict-compiler-policy 'debug 3)
in the repl or your .sbclrc will do it.

Xach
- 11,774
- 37
- 38
-
6`(sb-ext:describe-compiler-policy)` – Xach Jan 09 '11 at 11:51
-
1Thanks. I tried to find this out for myself - is there a reference I should have checked? I couldn't see anything in or around here http://sbcl.sourceforge.net/manual/Debugger-Policy-Control.html – Joel Jan 09 '11 at 11:58
-
Just part of the lore. The source of the function says it's experimental, so maybe that's why it's not part of the manual yet. – Xach Jan 09 '11 at 17:33