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

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

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

worley@compass.uucp (Dale Worley) (11/07/90)

That's a neat hack!

   X-Name: Ray Lischner

   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.

Might it be possible to use a switch or something (like GDB does) so
that perldb can tell whether it's running under Emacs or not?

Dale Worley		Compass, Inc.			worley@compass.com
--
Captain's Log, Star-date 6701.9:  The weather is fine.  Beam down Yeoman
Rand and a six-pack.

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (11/08/90)

In article <1990Nov7.154443.1121@uvaarpa.Virginia.EDU> worley@compass.uucp writes:
: That's a neat hack!
: 
:    X-Name: Ray Lischner
: 
:    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.
: 
: Might it be possible to use a switch or something (like GDB does) so
: that perldb can tell whether it's running under Emacs or not?

This is undocumented, but at pl36 you can do this, or its equivalent:

    setenv PERLDB 'require "myperldb.pl"'

I haven't decided if that's the best way to handle it yet, so consider
it quasi-pre-deprecated.

Larry

worley@compass.com (Dale Worley) (12/20/90)

Could the clever person who invented the Gnu Emacs Perl debugger send
me a copy?  I need both perldb-mode and perldb.pl.

Thanks!

Dale Worley		Compass, Inc.			worley@compass.com
--
True, money _can't_ buy happiness, but it isn't happiness I want.  It's money.