in reply to debugging mod_perl?

Well, I've found something that may allow me to use the Perl debugger, Apache::DB. However now that I'm trying to use it I can't seem to load apache, I get the following error:
[root@slinux bin]# ./httpd -X -D PERLDB [notice] Apache::DB initialized in child 2257 Syntax Error on line 999 of /usr/local/apache/conf/httpd.conf: No DB::DB routine defined at /usr/local/lib/perl5/5.8.0/Exporter/Heavy +.pm line 4. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.0/Export +er/Heavy.pm line 4. Compilation failed in require at /usr/local/lib/perl5/5.8.0/Export.pm +line 16. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/i6 +86-linux-thread-multi/DBI.pm line 255. Compilation failed in require at (eval 8) line 3.

With that Apache dies. The following is lines 983 - 994:
<IfDefine PERLDB> #Line 983 <Perl> use Apache::DB (); Apache::DB->init; </Perl> <Location /> PerlFixupHandler Apache::DB </Location> </IfDefine> #Line 994

I'm at a bit of a loss to explain this since I've never corectally set it up before. The code above is essentially a copy-paste from one of the mod_perl docs that talks about debugging.

Thanks for any advice you can give.



My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

Replies are listed 'Best First'.
Re: (UPDATE) debugging mod_perl?
by perrin (Chancellor) on May 19, 2003 at 04:27 UTC
    Apache::DB has worked for me in the past. However, I've never tried it with perl 5.8. Is it possible for you to try this with 5.6.1?