perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John ORourke <john-modp...@o-rourke.org>
Subject Re: [MP2] set breakpoint
Date Tue, 07 Feb 2006 08:37:50 GMT
What sort of IDE, debugger, and platform are you using?

Personally for debugging handlers I find it easier to just stick a line 
like: warn "got here, r=$r\n"

then just tail -f the error_log.  Proper old school.  Then again I 
develop with vi on an 80x24 terminal, am I missing out on something?

John

Ken Perl wrote:

>hi,
>I'd like to set a breakpoint at the first line in the module's handler,
>sub handler {
>        my $r = shift;       <-- here
>         ...  ...
>       $r->set_handlers(PerlResponseHandler => \&contentHandler);
>}
>
>So, I tried PerFixupHandler, PerlHandler  and PerlInitHander
>respectively in below Location directive, but all didn't stop at the
>point I wanted, instead, It always stopped at  the line of
>'&contentHandler',
>                <Location />
>                        PerlInitHandler +Apache::DB
>                </Location>
>
>what I did wrong?
>
>--
>perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
>")'
>
>  
>


Mime
View raw message