4

I have a vim plugin that I'm writing in python, however I need to debug the python script. How can use pdb (or preferably ipdb) in the vim script itself? When I use pdb vim just hangs with no output, and when I use ipdb it turns vim into garbaged output.

1 Answer 1

3

You could try rpdb to debug remotely. Where the remote is just a different tab in your shell.

Just install Winpdb (not windows specific anymore) http://winpdb.org/ It includes rpdb2 which is a remote version of pdb and winpdb itself is a nice graphical debugger.

Usage example with Winpdb:

import rpdb2
rpdb2.start_embedded_debugger('some password')

And from Winpdb:

File -> Attach
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.