[comp.archives] [perl] GNU Emacs debugger for Perl PL36

lisch@mentor.com (Ray Lischner) (12/06/90)

Archive-name: languages/perl/perldb.el/1990-11-05
Archive: lisch@mentor.com:Please send me perldb.el. [mail]
Original-posting-by: lisch@mentor.com (Ray Lischner)
Original-subject: GNU Emacs debugger for Perl PL36
Reposted-by: emv@ox.com (Edward Vielmetti)

I modified gdb.el from GNU Emacs to work with the Perl debugger.
There is a new perldb.pl, which also works outside of emacs, and
perldb.el.  The use is similar to GDB mode: invoke PERLDB from Emacs,
enter a file name and command line arguments.  One Emacs window
displays the debug session, the other displays the current source
file.  The user can define keys for commands, such as M-s to single
step, M-c to continue.

By putting the cursor in the source window, the user can type C-x
SPC to set a breakpoint on the line under point.  The user can
also define a set of commands that read the identifier under
point, e.g., "p join(',', %s)" where %s is replaced by the
identifier under point, such as "@foo".

If you don't like to change the standard perldb.pl, it is relatively
simple to copy the DB subroutine and two extra lines to your own
.perldb file.

For diffs for perldb.pl, including perldb.el, send email to
uunet!mntgfx!lisch (about 20K).
-- 
Ray Lischner        UUCP: {uunet,apollo,decwrl}!mntgfx!lisch