Is it possible to debug Python scripts line by line using :Termdebug?

:help termdebug-customizing says, that you need a debugger that is "fully compatible with gdb". Is there a debugger for Python that is compatible (using the GDB/MI interface)?

Or are there other alternatives?

  • I don't have the experience to answer you but the plugin python-mode has a feature which allows you to use breakpoints in python see here they also mention the following debuggers: pdb, ipdb, pudb. – statox Nov 15 '18 at 9:35

There are alternatives.

Plain ol' pdb can be integrated into vim with

(My own favourite) pudb can be integrated with

And the popular ipdb can be integrated with

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.