in reply to CGI::Application: how to debug?
In addition to checking the web server error logs you could use:
See also cgi-app.org - Debugging Tips, and other associated resources from that site.