Skip to main content

VIM PDB support

Project description

CAUTION: work-in-progress

PDB support for VIM.

Prerequisites: - a python-enabled VIM (test: “:python import os” in VIM) - VIM servermode compiled in (on OS X this requires MacVIM)

usage

Open a terminal and start a VIM with servername ‘PDB’:

$ mvim --servername PDB

Then, from the program to be debugged use it like pdb,

>>> import vimpdb; vimpdb . set_trace()

(the blanks above are needed due to some dumb SVN precommit hook)

When this line is hit, PDB starts and your PDB-VIM should load the source code and highlight the current LOC. Additionally you should get a “PDB” menu, where you can set/toggle breakpoints etc.

how does (should) that work?

vimpdb is a subclass of pdb.Pdb, which hijacks the command loop and listens for UDP packets on port 6666 (blocking). To inform the VIM process what’s happening, it uses VIM’s remote commands.

On the VIM side there’s basically just a VIM script which does the higlight, set up the menu, and defines a function to send UDP messages.

That’s all.

bugs

  • sometimes the vim script is not sourced correctly

  • there are no easy keyboard commands for using the debugger, one needs to use the menu.

  • no security

  • network settings hard coded

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vimpdb-0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vimpdb-0.1-py2.4.egg (12.9 kB view details)

Uploaded Egg

File details

Details for the file vimpdb-0.1.tar.gz.

File metadata

  • Download URL: vimpdb-0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vimpdb-0.1.tar.gz
Algorithm Hash digest
SHA256 11c39c75c0abb3a1784c2ce0c14424ad05725f135025b2230444501ac456bca5
MD5 521aacb33d1718fc4664ac2aabe7fd45
BLAKE2b-256 9266f6e50e29cdcb5ad91466ea1b6c12f83ce1b1aa5badbc21594ed27a83765a

See more details on using hashes here.

File details

Details for the file vimpdb-0.1-py2.4.egg.

File metadata

  • Download URL: vimpdb-0.1-py2.4.egg
  • Upload date:
  • Size: 12.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vimpdb-0.1-py2.4.egg
Algorithm Hash digest
SHA256 479dec9d5d324f9bb21f0f600835812f342be1f5f0f7e7e1f7b08c5662a2edee
MD5 14475e1413f4ca53c4968211d59e477d
BLAKE2b-256 5f874bbf0c8609df0910eed9da845327b97cec056fd0712c05be2106acecf271

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page