A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Perl debugger tips and tricks


In the debugger:

  • $DB::deep = 500 # prevent the warning "100 levels deep in subroutine calls!"
  • {{v # display the code ahead after every step
  • b Test::Something::App::Module::login # break at a particular subroutine in a specified module
  • c # continue until the next breakpoint
Also remember that the debugger often provides extra stack trace information for 'untraceable' warnings or errors.