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.

Paolo
  • 20,112
  • 21
  • 72
  • 113
Ben Davis
  • 13,112
  • 10
  • 50
  • 65

1 Answers1

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
Naga Kiran
  • 8,585
  • 5
  • 43
  • 53
Wolph
  • 78,177
  • 11
  • 137
  • 148