On Tue, 2006-02-07 at 16:10 +0800, 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?

Did you load this handler before you loaded the debugger?  You should
call Apache::DB->init() explicitly before loading any of the code you
want to debug, or it won't get debugging symbols.  See the documentation
for Apache::DB.

- Perrin

Reply via email to