Function: backtrace-debug

backtrace-debug is a function defined in eval.c.

Signature

(backtrace-debug LEVEL FLAG)

Documentation

Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG.

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, Qnil);

  if (backtrace_p (pdl))
    set_backtrace_debug_on_exit (pdl, !NILP (flag));

  return flag;
}