|Keep It Simple, Stupid|
vim perl debugger integrationby toiletmonster (Novice)
|on Oct 28, 2002 at 21:47 UTC||Need Help??|
toiletmonster has asked for the wisdom of the Perl Monks concerning the following question:
ok. i'm trying to write a vim plugin that will allow me to visually step through and debug my code.
i discovered this DB.pm module and that seems pretty cool. (maybe it is what activestate uses for their windows gui perl debugger since it was written by a guy who works there?) it seems to be a debugger api type thing that is exactly what i would like to make my life easier. but its not working.
i can't get the debugger to load the file. i try to load the file with:
$self->loadfile( $file, $linenumber )
but that doesn't seem to work. if you actually look at the code for loadfile() in DB.pm, it should return the filename if it succeeds. its not succeeding.
i think i'm doing something fundamentally wrong. any ideas? here is my code:
my other option is to not use DB.pm at all and to use open2() on perl -d. which is not as pretty. and the annoying thing with that is the debugger writes to /dev/tty instead using STDOUT and STDIN, and that was giving me fits too because i want vim to display to /dev/tty and the debugger always takes over.