SPUG: How to deal with same name packages?

Chris Sutton chris at chriskate.net
Tue Jan 15 00:04:22 CST 2002


> http://perl.apache.org/guide/debug.html#Interactive_mod_perl_Debugging
>
> ;-)

I'm hooked.  A couple of things to share with others who may be just 
discovering this.  In these docs they say run

httpd -X -D PERLDB

I found you also need to specify -D HAVE_PERL or mod_perl doesn't even load 
(and you cant use the debugger).

httpd -X -D HAVE_PERL -D PERLDB

To kick off the debugger you then have to send a request to apache with a 
browser (or other means) to the location which you want to debug and then the 
debugger will start.  Unlike normal perl debugging, it doesn't look like you 
can "R"estart from the beginning.

Also, I got frustrated in the debugger because "X" didn't seem to dump any of 
my variables.

Let say I had a local hash (my %hash).  To see the contents you have to say 
"x %hash"  X seems to just print any global shared vars.

I'm over the hump now.  Thanks for the pointers.

Chris



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/





More information about the spug-list mailing list