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?
:Termdebug
? I am also very interested in how this works without using a bunch of plugins out the gate.:Termdebug
. You can debug Python with GDB itself, however then you are working on the C-level of the Python application. There is one way that allows you to work with the actual Python code in GDB (see this talk: youtube.com/watch?v=rB9rPdMRxIA), however I haven't tried that yet, so I can't tell from experience.py-
prefix everywhere (py-up
instead ofup
), but in general that approach should work also nicely with:Termdebug
.