Often times I need to debug code wrapped in the BODYFORM of condition-case
; however, the debugger is suppressed even though I have debug-on-error
set to t
. The doc-string states that we can add debug
to the list of handlers, but I didn't find a good example by Googling of how this might be accomplished. Modifying the code of something that I am trying to debug to add a handler seems rather inefficient.
Is there an approach to force condition-case
to always generate a debugging message without modifying the section of code that I am trying to debug? If not, then an explanation why along with a sample of how to use debug
as a handler would be an acceptable answer.
condition-case-unless-debug
instead ofcondition-case
?debug-on-signal
can be useful for this too (although it's sometimes a bit too much).