stardiviner <[email protected]> writes:

> Derek Chen-Becker <[email protected]> writes:
>
>> By "add breakpoint" do you mean only on error? There's
>> "toggle-debug-on-error" but that's global (for any error), or there's
>> "debug-on-entry" but that would trigger on every invocation, not just on
>> errors. A little googling came up with a way to make debug-on-error
>> selective using advice, but this is getting outside of my level of elisp
>> expertise:
>>
>> (define-advice target-function (:around (orig-fun &rest args)
>> debug-only-here) "Enable debug-on-error only during the execution of
>> target-function." (let ((debug-on-error t)) (apply orig-fun args)))
>>
>
> I tried your advice, but it did not work, has not raise anything (like
> backtrace or error message etc).

Most likely, you need backtrace-on-redisplay-error.

In any case, I think I know where the problem is.
Fixed (hopefully) on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e83e1722b

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to