I am trying to setup Apache::DB on my Debian box.
In httpd.conf I have this inside my mod_perl Location directive:
PerlFixupHandler Apache::DB
I PerlRequire this, according to the manpage:
use Apache::DB (); Apache::DB->init; 1;
After stopping apache, I start it from CLI:
sudo apache -X
As soon as I try to render something in the browser, I get this in error.log:
[error] Undefined subroutine &Apache::Status::handler called.
Eventually, I get perldb prompts; but, they do not behave as I expect. I have been studying this:
<http://perl.apache.org/docs/1.0/guide/debug.html#Introduction_to_the_Perl_Debugger>
I have not found reference to the subject error.
I think you are rather talking about: http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging And you probably have missed this note:
This section should be at the top of the Perl configuration section of the configuration file, before any other Perl code is pulled in, so that debugging symbols will be inserted into the syntax tree, triggered by the call to Apache::DB->init.
The suggested config section should work just fine:
<Perl> use Apache::DB (); Apache::DB->init; </Perl> <Location /> PerlFixupHandler Apache::DB </Location> PerlModule Apache::Status <Location /perl-status> PerlHandler Apache::Status SetHandler perl-script </Location>
make sure that you do *not* preload Apache::Status before you init Apache::DB
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html