|Don't ask to ask, just ask|
use CGI::Carp qw(fatalsToBrowser);by Heidegger (Hermit)
|on Apr 09, 2003 at 11:19 UTC ( #249196=perlquestion: print w/replies, xml )||Need Help??|
Heidegger has asked for the wisdom of the Perl Monks concerning the following question:
I'm debugging a perl web application on Apache. I want the errors to go to the browser instead of the Apache error.log file. I have included the directive use CGI::Carp qw(fatalsToBrowser); in my script. Unfortunately, the error don't appear in the browser - they still go to the error.log file.
Maybe I'm mistaken, such errors like: [Wed Apr 09 05:12:31 2003] [error] [client 192.168.0.251] syntax error at C:/Perl/site/lib/Mokslas/Manage/ManagePositions.pm line 232, near ") aren't supposed to go there?
Or maybe I have to include CGI::Carp module in another order? I have inherited my application from CGI::Application. Maybe it doesn't let me override fatalsToBrowser constant?
Thank you very much.
Back to Seekers of Perl Wisdom