Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to Debug the CGI Codes

by strat (Canon)
on Jul 10, 2006 at 08:13 UTC ( #560092=note: print w/ replies, xml ) Need Help??


in reply to Re: How to Debug the CGI Codes
in thread How to Debug the CGI Codes

For development, I even use:

use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;

because it also handles warnings

Update: is wrong, see the posting from reneeb below

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"


Comment on Re^2: How to Debug the CGI Codes
Re^3: How to Debug the CGI Codes
by reneeb (Chaplain) on Jul 10, 2006 at 09:01 UTC
    To handle warnings, you have to call the warningsToBrowser subroutine with a true argument. See documentation of CGI::Carp.
Re^3: How to Debug the CGI Codes
by Ieronim (Friar) on Jul 10, 2006 at 09:06 UTC
    Just a note:
    warningsToBrowser(1) must be explicitly called after printing the page header, and will output all warnings as HTML comments. It's its difference from fatalsToBrowser, which catches all fatal errors (even compile-time!) without any additional actions. The CGI::Carp documentation contains additional info.

    UPD: i haven't seen the previous reply while writing this :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://560092]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-08-22 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls