vimpdb 0.1
VIM PDB support
Latest Version: 0.2.1
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
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| vimpdb-0.1.tar.gz (md5) | Source | 2008-06-13 22:15:40 | 6KB | 97 | |
| vimpdb-0.1-py2.4.egg (md5) | Python Egg | 2.4 | 2008-06-13 22:15:40 | 12KB | 173 |
- Author: Stefan Eletzhofer <stefan eletzhofer at inquant de>
- Home Page: https://svn.plone.org/svn/collective/vimpdb/trunk
- Keywords: vim pdb
- License: GPL
- Package Index Owner: seletz
- DOAP record: vimpdb-0.1.xml
Log in to rate this package.
