Function: backtrace-debug
backtrace-debug is a function defined in eval.c.
Signature
(backtrace-debug LEVEL FLAG &optional BASE)
Documentation
Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG.
LEVEL and BASE specify the activation frame to use, as in backtrace-frame.
The debugger is entered when that frame exits, if the flag is non-nil.
Source Code
// Defined in /usr/src/emacs/src/eval.c
{
CHECK_FIXNUM (level);
union specbinding *pdl = get_backtrace_frame (level, base);
if (backtrace_p (pdl))
set_backtrace_debug_on_exit (pdl, !NILP (flag));
return flag;
}