You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ken Perl <ke...@gmail.com> on 2006/02/06 15:25:34 UTC

interactive debuging modperl2 using Apache::DB

Hi,
I configured Apache::DB in my modperl2 and got a notice message in
apache2 startup error.log,
[notice] Apache::DB initialized in child 1123

I think I have setuped it successfully.
And I also see the debugger welcome message,
Loading DB routines from perl5db.pl version 1.28
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

But I don't know to interactive with modperl to debug my program, I
can only see  DB<1>  prompt symbol in the log file.

--
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'

Re: interactive debuging modperl2 using Apache::DB

Posted by Frank Wiles <fr...@wiles.org>.
On Mon, 6 Feb 2006 22:25:34 +0800
Ken Perl <ke...@gmail.com> wrote:

> Hi,
> I configured Apache::DB in my modperl2 and got a notice message in
> apache2 startup error.log,
> [notice] Apache::DB initialized in child 1123
> 
> I think I have setuped it successfully.
> And I also see the debugger welcome message,
> Loading DB routines from perl5db.pl version 1.28
> Editor support available.
> 
> Enter h or `h h' for help, or `man perldebug' for more help.
> 
> But I don't know to interactive with modperl to debug my program, I
> can only see  DB<1>  prompt symbol in the log file.

  That means you're *in* the interactive debugger.  You can hit 'h'
  for help or read 'man perldebug' for more information on how to
  debug your program. 

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


Re: interactive debuging modperl2 using Apache::DB

Posted by Michael Peters <mp...@plusthree.com>.

Ken Perl wrote:
> Hi,
> I configured Apache::DB in my modperl2 and got a notice message in
> apache2 startup error.log,
> [notice] Apache::DB initialized in child 1123
> 
> I think I have setuped it successfully.
> And I also see the debugger welcome message,
> Loading DB routines from perl5db.pl version 1.28
> Editor support available.
> 
> Enter h or `h h' for help, or `man perldebug' for more help.
> 
> But I don't know to interactive with modperl to debug my program, I
> can only see  DB<1>  prompt symbol in the log file.

You need to start apache in single process mode and not detach it from the
terminal like so:

  httpd -X -D PERLDB

Look at
http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging

-- 
Michael Peters
Developer
Plus Three, LP