Confessions of a ytpist
A short summary of the Perl Debugger

Steven Lembark

Tuesday April 13th 2004 at 7:00pm
College of DuPage Bldg OCC Rm 128b


The perl debugger is a beautiful thing to behold...from afar.

Up close it is quite functional and useful, but looks enough like gdb to scare most people away. Which is too bad, because its syntax is rather well adapted to dealing with the realities of programming in Perl.

Notwithstanding a recent O'Reilly pocketbook guide, the debugging documentation is a bit sketchy -- limited to the Camel and Nutcase book's syntax chapters.

The debugger is also a handy tool for testing Perl syntax and profiling your code. Being written in Perl, you can use it from within your programs (this is where the $DB::single = 1 lines in modules come from). Setting programatic breakpoints or switching tracing within your code lets Perl do the work. Letting your code debug itself is the height of lazyness -- and good coding.

Also, the "ptkdb" module now offers a GUI experience for those who don't enjoy wallowing in mud... er, the command line.

The talk will give a short introduction to dealing with the debugger, debugging with $DB::single, installing and using ptkdb and the Profiler.

Speaker Bio

Steve Lembark is a Systems Architect and Perl hacker. On occasion he has been known to type something correctly, at which point the debugger is still useful.

Getting to the meeting

The next PerlSIG meeting of UniForum Chicago will be from 7:00 pm to 9:00 pm on Tuesday, April 13th, 2004, at the College of DuPage, building OCC - room 128b.

        College of DuPage
        Building OCC, Rm 128b
        22nd and Lambert
        Glen Ellyn, IL 60137-6599
Take 355 to Butterfield Rd (Rt 56).
Take Butterfield West to Lambert Rd, then Lambert Rd North to 22nd St.
Turn left and look for Lots 9 or 10 (A or B) on the left side of Fawell Blvd.
Walk south to Building OCC, room 128b is near the mid north-west corner of the building.

All UniForum Chicago PerlSIG meetings are open to the public free of charge.

Contact Deborah Vose at (630) 829-7033 or for additional information about the meeting.

For more information about UniForum Chicago contact

UniForum is a registered trademark of UniForum Association