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

Hi Guys,

I am trying to use CGI::Application:: Plugin::DebugScreen,

i am not able to find much documentation about it. I have tried quite a no. of things. I am sure i am missing some thing here.

I have use this module and then set this environment $ENV{CGI_APP_DEBUG} = 'true';

but again got nothing. Same old "Internal Server Error..."

Replies are listed 'Best First'.
Re: CGI::Application:: Plugin::DebugScreen
by marto (Cardinal) on May 30, 2007 at 19:33 UTC
    Perhaps something is failing before the debug window gets called, are you checking your error_log? For CGI::Application::Plugin::DebugScreen info check out Rapid Website Development with CGI::Application. On page four it has a short section titled "DevPopUp: A Unique Developer Tool". This section has a link to an example on Rhesa's CPAN pages.

    Have you tried any debugging at all from the command line to see why the script is dying? Remember to check your error_log to see what is going on. Read up on use CGI::Carp qw(fatalsToBrowser);, but remember not to have this in production code.

    Martin
      in the error log i am only getting this error

      I have myself put code so that my code fails, but instead of getting a DebugScreen i am getting the same screen

      Error executing run mode 'login': must call dbh_config() before callin +g dbh(). at WebApp/AppBase.pm line 224 at /var/www/cgi-bin/testproj/perl/testproj.pl line 7 [Thu May 31 01:16:32 2007] [error] [client 127.0.0.1] Premature end of + script headers: testproj.pl, referer: http://localhost/cgi-bin /testproj/perl/testproj.pl
        You are 'only' getting an error message explaining that something is wrong in the runmode 'login'. How are you configuring DBH? Via a prerun runmode? Please make an effort to check out error messages and debug your code before posting. Making effort encourages people to help you when you are really stuck. This goes the same for finding example code. The CGI::Application home page has links to examples and articles that are available, quickly searching using Google would have found that for you. Read the articles I linked to previously, and the articles/examples in links from this post. If you still have problems let us know.

        Martin
Re: CGI::Application:: Plugin::DebugScreen
by Joost (Canon) on May 30, 2007 at 19:56 UTC

      When i used use CGI::Carp qw(fatalsToBrowser); befor use CAP::DebgScreen i am getting following error, but no stacktrace,

      I think this error is comming by using CGI::Carp, but may be CAP::DebugScreen is still not working

      But thanks atleast it is giving some debug information, atleast