Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

:breakadd file linenumber xx.vim doesn't seem to work.

When I press a key that triggers the invocation of certain python functions, it doesn't stop at that line. What happened? By the way, I am in vim's debug mode since I opened the file using vim -D filename.

As shown by the following picture, what I want to do is debug a python function which is invoked when I press F5 in vim.

enter image description here

like image 777
hugemeow Avatar asked Aug 03 '12 02:08

hugemeow


1 Answers

I have done some simple check and I see that rpdb2 works when invoked from vim. So you can use it (with GUI frontend called winpdb or with console tool called also rpdb2).

http://winpdb.org/

like image 180
zefciu Avatar answered Nov 02 '22 17:11

zefciu