sponsor Vim development Vim logo Vim Book Ad

vdb.vim : Vim becomes an integrated debugger for any language with a text based debugger

 script karma  Rating 51/17, Downloaded by 1875

created by
James Dominy
 
script type
utility
 
description
VDB will eventually provide a generic interface to any text based, line oriented, debugger, such as gdb, or pdb. Right now it only works with gdb, but eventually, it is intended to be made extensible by use of "interface configuration files" [potentially in XML, but that's probably overkill] specifying what the debugger of choice considers the commands for various actions to be. It only works on operating systems that support pty's, i.e. not windows. Currently users are able to step over/into a particular line of code, execute until the current cursor line is reached, set watches on expressions, view the output of their programs in a vim buffer, and interactively enter data into the same buffer when their program requires input. More powerful actions can be performed by using the debug console, which gives you direct access to the back-end debugger process. Type commands in here, and see their results both in text, and reflected in the various status displays within vim. You will need vim version 7.0 or higher. Actually it might work on lower versions, I haven't tested yet. For more info check out the README file that's bundled in the package.

You might want to check out pygdb (vimscript #2270) if you prefer GUI debuggers, it looks very promising.

If you want to contact me, simply fire off a message to vimdebugger@gmail.com.
 
install details
Complete and comprehensive installation instructions are provided in the file quick-start.txt
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vdb-0.4.4.tar.gz 0.4.4 2010-02-07 7.0 James Dominy vdb-0.4.4.tar.gz 2010-02-08
* Aoyama Shotaro: add a ruby interface
* Aoyama Shotaro: fixed a typo in cpdb.py and made pdbout global
* Aoyama Shotaro: using subprocess module instead of os,popen
* hacked debuggers to be included in the main package hence forth
* lots more, see change log in the README
vdb-0.4.4.tar.gz 0.4.4 2010-02-07 7.0 James Dominy vdb-0.4.4.tar.gz 2010-02-08
* Aoyama Shotaro: provided a ruby interface including a hacked version of the
   ruby debugger providing the necessaries (split output etc.)
* Aoyama Shotaro: fixed a typo in cpdb.py and made pdbout global
* Aoyama Shotaro: change the subprocess system command from os.popen4 to
   subprocess.Popen
* Aoyama Shotaro: changed getsymbol value from 'print' to 'p' in the python
   interface, because 'print' prints to the inferior tty and deosn't produce
   something to be caught as a watch
* Aoyama Shotaro: add exception handling to the main vdb commands
* Aoyama Shotaro: added option "g:VDB_ptyname" as a vim variable. When set
   indicates a names pty to use as inferior tty instead of opening a new vim
   buffer to do it (obviously this means a full featured terminal, but requires
   a separate window or console)
* hacked debuggers to be included in the main package hence forth
vdb-0.4.4.tar.gz 0.4.4 2010-02-07 7.0 James Dominy vdb-0.4.4.tar.gz        2010-02-08
* Aoyama Shotaro: provided a ruby interface including a hacked version of the
   ruby debugger providing the necessaries (split output etc.)
* Aoyama Shotaro: fixed a typo in cpdb.py and made pdbout global
* Aoyama Shotaro: change the subprocess system command from os.popen4 to
   subprocess.Popen
* Aoyama Shotaro: changed getsymbol value from 'print' to 'p' in the python
   interface, because 'print' prints to the inferior tty and deosn't produce
   something to be caught as a watch
* Aoyama Shotaro: add exception handling to the main vdb commands
* Aoyama Shotaro: added option "g:VDB_ptyname" as a vim variable. When set
   indicates a names pty to use as inferior tty instead of opening a new vim
   buffer to do it (obviously this means a full featured terminal, but requires
   a separate window or console)
* hacked debuggers to be included in the main package hence forth
cpdb.py 0.1 2008-06-28 6.0 James Dominy Separate, stand-alone python debugger that implements an inferior tty for the program being debugged.
vdb-0.4.3.tar.gz 0.4.3 2008-06-28 7.0 James Dominy vdb-0.4.3.tar.gz        2208-06-28
* hacked pdb.py to implement inferior-tty ala gdb. This means we finally have
   pdb and gdb working! Yay! You can download the hacked version (cpdb.py)
   here too. Put in somewhere in your path to use it, and make it executable.
* added a built in interface for cpdb.py, next step, externally specified
   interfaces, and version 0.5, and the move to beta!
vdb-0.4.2.tar.gz 0.4.2 2008-05-30 7.0 James Dominy + Added a thread to force output of delayed characters from the debugged processes output, which only acts after output has ceased for at least 200ms. This means less redrawing, faster response, and you can actually see your programs output correctly
vdb-0.4.1.tar.gz 0.4.1 2008-05-30 6.0 James Dominy Technically not for public consumption, but reports from the wild seem positive. Fixed the "can't remove a watch" error. Still C only. Would appreciate some help writing the interfaces for other debuggers ;)
vdb-0.4.0.tar.gz 0.4.0 2007-10-31 7.0 James Dominy * complete rewrite as proposed earlier, using threads to catch debugger and
   target process output
* removed stack window entirely
* it works with gdb only at the moment

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo