DEV Community


Discussion on: Debugging a web application in Perl

mjgardner profile image
Mark Gardner Author

I basically used a slimmed-down version of Devel::Trace::More, writing a DB::DB sub that got the currently-running code from caller() and then outputting the file name, line number and the line of code to STDERR. Then run perl with the -d switch, and you're done.