launch ptkdb
Patch Apache::DB to launch ptkdb instead of perldb
--- DB.pm Mon Sep 22 18:06:55 2003
+++ DB.ptkdb.pm Mon Sep 22 18:07:09 2003
@@ -26,7 +26,7 @@
init();
- require 'Apache/perl5db.pl';
+ require 'Devel/ptkdb.pm';
$DB::single = 1;
if (ref $r) {
Start Apache with debugging flag
matt@vrip ~ 111> ./ad-talk/apache/bin/httpd -D PERLDB
[notice] Apache::DB initialized in child 1707
matt@vrip ~ 112>
ptkdb window will appear when request occurs
(no screenshots available)
Debug just like you would ordinary perl
- 'Step In' = s
- 'Step Over' = n
- 'Run' = c
Notice that:
- content might not prints to screen as print statements are stepped through
- debugger hangs until next request. window *may* be re-used, though i can't figure out when
- apache was started in multi-user mode. you can also start with -X if desired
- sometimes, you need to hit 'Return' upon first invocation to bring you past the ptkdb code
To kill debugger:
Do a window kill.
back | toc | next
(c) 2003 matt lanier, matt@lanier.org. Licensed under the same terms of perl itself