|
Apache::DB - Run the interactive Perl debugger under mod_perl |
Apache::DB - Run the interactive Perl debugger under mod_perl
<Location /perl> PerlFixupHandler +Apache::DB
SetHandler perl-script PerlHandler +Apache::Registry Options +ExecCGI </Location>
Perl ships with a very useful interactive debugger, however, it does not run ``out-of-the-box'' in the Apache/mod_perl environment. Apache::DB makes a few adjustments so the two will cooperate.
#where db.pl is simply: # use Apache::DB (); # Apache::DB->init; PerlRequire conf/db.pl
#where modules are loaded PerlRequire conf/init.pl
If you are using mod_perl 2.0 you will need to use the following as your db.pl:
use Apache2; use APR::Pool (); use Apache::DB (); Apache::DB->init();
<Location /my-handler> PerlFixupHandler Apache::DB SetHandler perl-script PerlHandler My::handler </Location>
-X to use Apache::DB.
perldebug(1)
Originally written by Doug MacEachern
Currently maintained by Frank Wiles <frank@wiles.org>
|
Apache::DB - Run the interactive Perl debugger under mod_perl |