gurbo has asked for the wisdom of the Perl Monks concerning the following question:

I've found recently the Apache::DB module. You make a normal request from your browser and it makes the program enter the debugger on the handler function (you have to pass the -X option to the Apache server so it runs on the foreground).

I though this was great. Yes, you can debug by printing log messages but the perl debugger provides you a lot more.

Is there anything like this when you run a Perl script on Apache via CGI?

I know you can print anything you want, use Data::Dumper, maybe CGI::Debug, even run the script from the command line (a real PITA) but what gives Apache::DB is far, far better. You're inside the debugger with everything set up and the debugger prompt there.

Thanks in advance
gurbo

Replies are listed 'Best First'.
Re: CGI equivalent of Apache::DB? (search)
by tye (Sage) on Jun 02, 2010 at 17:13 UTC
Re: CGI equivalent of Apache::DB?
by ikegami (Patriarch) on Jun 02, 2010 at 16:20 UTC

    Add -d to the #! line?

    (A private message from the OP seems to confirm my guess.)