For the few of us wretches who write code with bugs...
Nov 10, 2003 12:06 PST
... I will be describing the Perl debugger.
Admittedly this might at first seem useful only to the tiny proportion
of you who write code with bugs in it. However, if you contemplate
the number of other idio..., er, Otherwise Fine Programmers (tm)
who put bugs in their code the debugger starts to look, well, useful.
I'll go over the debugger basics inside "perl -d" for setting breakpoints
and running code and examining variables and structures. It's also
worth spending a few moments on $DB::single, $DB::trace (and why
to remove them before releasing a module :-).
For those who don't enjoy gdb, I'll also describe how to get/install/use
the Perl Tk Debugger (-d:ptkdb).
But wait, there's more...
The debugger is a nice tool for simply checking code or for one-pass
data munging. I'll go over some tricks for command-line perlyfying
with the debugger.
Note: after the last meeting I was also approached about doing
something with OO Perl. I can pick that up at a later time if people
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 888 359 3508