When a vim plugin is developed in a mixed script of vim script and python, can we set breakpoints and debug the python script. I tried to use PDB module, but vim is dead when it go to the pdb.set_trace()
.
This post -- Writing Vim plugin in Python -- says "You can test and debug it outside Vim with whatever tools you typically use." But when the python script import vim
, it cannot run outside Vim.
Note: I'm not asking how I can debug python code in vim like a python IDE. When I google for my question, all I got is to answer this different question. :(