emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error tangling: how to debug please?


From: Ihor Radchenko
Subject: Re: error tangling: how to debug please?
Date: Thu, 14 Sep 2023 12:59:04 +0000

"Fraga, Eric" <e.fraga@ucl.ac.uk> writes:

> Ihor,
>
> On Thursday, 14 Sep 2023 at 12:40, Ihor Radchenko wrote:
>> To debug, you can try to patch `org-babel-tangle-single-block', catching
>> when `org-src-coderef-regexp' is called with nil argument (it must be a
>> string). Then, examine which source block you are at when that happens.
>
> Thank you.  Happy to patch but how do I actually determine the source
> block in question?

For the patch, it will be something like adding (when ... (debug)) and
evaluating the defun.

The source block in question is at point, so, in the debugger, you can
just do "e (point) <RET>" and then jump to that point manually.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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

[Prev in Thread] Current Thread [Next in Thread]