How can I make Emacs break on an error, even if the error is being handled somewhere?
In my current scenario, the setup of a major mode is modifying the buffer and I want to find out why (and then fix it). I made a buffer read-only, ran edebug-defun
on the major mode function and set debug-on-error
to t
, but running the major mode function still proceeds until it aborts with a “Buffer is read-only” error. How do I get it to break on error, so that I know where it is raised and can examine the environment? Or at the very least how do I get a backtrace?
debug-ignored-errors
, it contains a list of error symbols and regexp:s for which the debugger shouldn't start.debug-on-error
.