DESCR 707 B

12345678910111213141516171819202122232425262728293031
  1. Apache::DB establishes the needed hooks to debug mod_perl code interactively.
  2. In order to use it,
  3. - add the following code to httpd.conf, after loading mod_perl.so
  4. <IfDefine PERLDB>
  5. <Perl>
  6. use Apache::DB ();
  7. Apache::DB->init;
  8. </Perl>
  9. <Location />
  10. PerlFixupHandler Apache::DB
  11. </Location>
  12. </IfDefine>
  13. - start apache for a debugging session using a line like:
  14. httpd -X -DPERLDB -u
  15. Then any perl request will be intercepted by the debugger.
  16. Modules such as HTML::Mason have further hooks to get into the debugger
  17. at interesting points.
  18. This port also provides some sample configuration code that can
  19. start up the debugger or the profiler in a similar way
  20. (${PREFIX}/share/Apache/DB/perldb.conf)