How to debug python function which is part of vim plugin?

The python call is defined in some of my .vim files.

:breakadd file linenumber xx.vim does not seem to work.

When I press a key that launches a call to certain python functions, it does not stop at that line. What happened? By the way, I am working in vim debugging mode, since I opened the file with vim -D filename .

As the following illustration shows, I want to debug a python function that is called when I press F5 in vim.

enter image description here

+6
source share
1 answer

I did a simple check and I see that rpdb2 works when called from vim. That way you can use it (with a GUI interface called winpdb or with a console tool also called rpdb2).

http://winpdb.org/

+1
source

Source: https://habr.com/ru/post/922008/


All Articles