mod_perl Tracing/ Debugging Hints

To trace an Apache Perl Module:

 $ sudo su -
 # apachectl stop
 # export PERL5OPT=-d
 # export PERLDB_OPTS=\
"NonStop=1 LineInfo=/tmp/wwdb.out AutoTrace=1 frame=16"
 # apachectl start

(In another terminal)
$ tail /tmp/wwdb.out
OR
Instead of tail, try this:

  • View /tmp/wwdb.out with the “less” command
  • While viewing the file in “less”
    • “shift-s” will “tail” the file
    • “ctrl-c” will stop tail, reverting to the standard “less” display.