tony at tony at
Mon Jan 25 10:45:04 CST 1999


The debugger is optionally build into the perl binary. You have to compile
with the debug option turned on. 

You can check your local copy by typing:
	perl -de 42 

You will see something like:

Loading DB routines from version 1.0401
Emacs support available.

Enter h or `h h' for help.

main::(-e:1):   42

If you don't see this, perl will tell you that it has to be compiled with
the 'debug' option. I don't recall the build flags, sorry.... pull down
the latest distribution from and recompile.

The debugger works best if you also get all the "*Read*" modules
from the cpan:

::ReadKey      Rdcf  Read keystrokes and change terminal modes    KJALB
::ReadLine     Sdcf  Common interface for various implementations ILYAZ
::Perl         RdpO  GNU Readline history and completion in Perl  ILYAZ
::Gnu          RdcO  GNU Readline XS library wrapper              HAYASHI

This is my bash function to start the debugger. I use the db to try out
new syntax and check things i run across. You can remove the "-I*" if you
don't have libs you need to include. 

function pd () 
    echo "starting perl in debug mode, lib ~/bin and ~/perl/lib are
    perl -I/home/foo/bin -I/home/foo/perl/lib -de 34


On Fri, 22 Jan 1999, Peter J Jones wrote:

> Hello all,
>     Just thought that I would add my $0.02 in.
>     As far as my OS I use FreeBSD at home and Solaris, AIX and NT at
> work. Oh yeah, can't forget my wife's Mac (Performa 630). I did
> everything the hard way with my FreeBSD box so I would love to help
> anyone with such questions if I can. If anyone hears of a job doing Perl
> stuff I would just love to apply. I am doing Perl programming at AMEX
> and so far they do not seem to be open minded about it. Meeting time
> sounds good (I just need to get my butt down there).
>     Anyone have any really good tips for debugging Perl Modules? Can't
> seem to get gdb to do it.
> See you all at the next meeting,
> Peter J Jones
> Surprise, AZ

More information about the Phoenix-pm mailing list