Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

CGI equivalent of Apache::DB?

by gurbo (Sexton)
on Jun 02, 2010 at 16:11 UTC ( [id://842788]=perlquestion: print w/replies, xml ) Need Help??

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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://842788]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found