I'm interested in getting errors from cgi-bin scripts inside the browser like the PHP errors.
The cgi script can be Perl, Python, Ruby, binary or something else. I'm not interested about a specific solution – I'm looking for something that should work with any script.
I want to use is on a development/test server not in production. I am aware that in production you should not display the error_log to the user.
I'm looking for a script to be used to replace ErrorDocument inside Apache. I had one in the past but I lost it.
Best Answer
Basically as radius says, catch & display the error rather than let it pass through. In perl, see the Carp module: http://search.cpan.org/~nwclark/perl-5.8.9/lib/Carp.pm