(locally (declaim (optimize (speed 0) (safety 3) (debug 3))) ,@form)
i'd bind this to C-u C-c C-c (and C-u C-c C-k)
good idea? bad idea?
this is a good idea. i'm already using a stone-age variant of this: some of my asdf systems (mostly the test systems) have a :after method that issue a (declaim ...) to enable debug 3, therefore i don't have to keep it in mind, and still everything i C-c C-c (and that will most probably break because of this :) is compiled with debug.
so my suggestion is to make it an alterable state of a swank connection in one way or another; i would find that more fitting for my usecases.