Think about Loose Coupling | |
PerlMonks |
Re^3: modperl debuggerby trwww (Priest) |
on Aug 23, 2008 at 08:40 UTC ( [id://706396]=note: print w/replies, xml ) | Need Help?? |
You want Apache::DB. Put the following in your httpd.conf:
Then start apache like so: /path/to/apache/bin/httpd -X -D PERLDBInstead of returning to the terminal like it usually does, the perl debugger will start. Then you can browse around your site. Now you can set breakpoints, step through code, inspect variables, or whatever. The only way I've found to stop the debugger is with kill -9 PID, so you'll need another terminal. If you are using mp2, there are a couple additional settings you need. See the link above or run perldoc Apache::DB for the details. Hope this helps, trwww
In Section
Seekers of Perl Wisdom
|
|