Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!caen!ox.com!emv From: lisch@mentor.com (Ray Lischner) Newsgroups: comp.archives Subject: [perl] GNU Emacs debugger for Perl PL36 Message-ID: <1990Dec6.050925.1759@ox.com> Date: 6 Dec 90 05:09:25 GMT References: <1990Nov5.224826.11427@mentor.com> Sender: emv@ox.com (Edward Vielmetti) Reply-To: lisch@mentor.com (Ray Lischner) Followup-To: comp.lang.perl Organization: Mentor Graphics Corp., Beaverton, OR Lines: 28 Approved: emv@ox.com (Edward Vielmetti) X-Original-Newsgroups: comp.lang.perl 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 Brought to you by Super Global Mega Corp .com