http://www.perlmonks.org?node_id=249196

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

Dear Monks,

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.