in reply to CGI::Application: how to debug?
perl -c filename and perl -d filename are your friends.
If you've already tried those, perhaps some additional information (or code) is in order.