You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Frank Wiles <fr...@wiles.org> on 2004/03/26 21:37:25 UTC

Apache::DB debugger and modperl 2.0

  I ran into some weird trouble with some code I am working on and 
  wanted to use the Perl debugger to step through the code.  I'm working
  with on Fedora with Apache 2.0.48 and mod_perl 1.99_12 RPMs from 
  February. I realize I'm not running the latest CVS and wanted to try
  and determine if the run away code is mine, one of the CPAN modules
  I'm using, or the fault of my older mod_perl 2.0 code.   

  Apache::DB is trying to use the 1.0 API $r->register_cleanup which
  has been changed to cleanup_register in APR::Pool. I tried just
  switching that one call, but still no go.  

  When running httpd -X I do see that the debugging is initialized, but
  when I issue a request the debugger UI doesn't show up in the
  terminal running httpd.  

  Does anyone know if Apache::DB can be made to work with 2.0 or if
  there is another way to get the Perl debugger running against my 
  mod_perl 2.0 code? 

  Any help on this would be appreciated. Thanks. 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://frank.wiles.org
 ---------------------------------


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Apache::DB debugger and modperl 2.0

Posted by Frank Wiles <fr...@wiles.org>.
On Fri, 26 Mar 2004 15:58:19 -0800
Stas Bekman <st...@stason.org> wrote:

> Frank Wiles wrote:
> >   I ran into some weird trouble with some code I am working on and 
> >   wanted to use the Perl debugger to step through the code.  I'm
> >   working with on Fedora with Apache 2.0.48 and mod_perl 1.99_12
> >   RPMs from February. I realize I'm not running the latest CVS and
> >   wanted to try and determine if the run away code is mine, one of
> >   the CPAN modules I'm using, or the fault of my older mod_perl 2.0
> >   code.   
> > 
> >   Apache::DB is trying to use the 1.0 API $r->register_cleanup which
> >   has been changed to cleanup_register in APR::Pool. I tried just
> >   switching that one call, but still no go.  
> 
> AFAIK, it wasn't ported to mp2. Why don't you port it, I imagine it
> shouldn't be too hard following these documents:
> http://perl.apache.org/docs/2.0/user/porting/porting.html
> http://perl.apache.org/docs/2.0/user/porting/compat.html
> 
> If you encounter problems don't hesitate to ask.

  I'm going to take the leap and try and get this ported to mp2.  I'll
  work against the latest CVS and let everyone know if/when I run into
  problems. 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://frank.wiles.org
 ---------------------------------


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: Apache::DB debugger and modperl 2.0

Posted by Stas Bekman <st...@stason.org>.
Frank Wiles wrote:
>   I ran into some weird trouble with some code I am working on and 
>   wanted to use the Perl debugger to step through the code.  I'm working
>   with on Fedora with Apache 2.0.48 and mod_perl 1.99_12 RPMs from 
>   February. I realize I'm not running the latest CVS and wanted to try
>   and determine if the run away code is mine, one of the CPAN modules
>   I'm using, or the fault of my older mod_perl 2.0 code.   
> 
>   Apache::DB is trying to use the 1.0 API $r->register_cleanup which
>   has been changed to cleanup_register in APR::Pool. I tried just
>   switching that one call, but still no go.  

AFAIK, it wasn't ported to mp2. Why don't you port it, I imagine it shouldn't 
be too hard following these documents:
http://perl.apache.org/docs/2.0/user/porting/porting.html
http://perl.apache.org/docs/2.0/user/porting/compat.html

If you encounter problems don't hesitate to ask.

 >   When running httpd -X I do see that the debugging is initialized, but
 >   when I issue a request the debugger UI doesn't show up in the
 >   terminal running httpd.
 >
 >   Does anyone know if Apache::DB can be made to work with 2.0 or if
 >   there is another way to get the Perl debugger running against my
 >   mod_perl 2.0 code?
 >
 >   Any help on this would be appreciated. Thanks.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html