You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John Williams <wi...@tni.com> on 2003/07/23 21:07:40 UTC
Debugging mod_perl with ptkdb
I followed the advice on the mod_perl guide to try setting up remote
debugging of mod_perl with ptkdb, and I've been trying to solve the
remaining problems.
http://perl.apache.org/docs/1.0/guide/debug.html#ptkdb_and_Interactive_mod_perl_Debugging
I now have ptkdb working in Apache multi-server mode without -X (-X works
too), popping up a new ptkdb window on the remote host for each request.
This required patches to both Apache::DB and Devel::ptkdb.
Devel::ptkdb-1.1086 had a line which prevented the window from appearing
unless the filename matched $0. Since $0 is "httpd" under Apache, it never
matched. I also added some code to emit a warning and continue running
without the window if the connection to the X server is refused.
For Apache::DB I added a new method handler for ptkdb, since the handler
turned out almost completely different from the one for the default
debugger.
Patches attached for Devel::ptkdb-1.1086 and Apache::DB-0.06.
~ John Williams