9

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?

Joel
  • 29,538
  • 35
  • 110
  • 138

1 Answers1

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
  • 1
    Thanks. 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