in reply to CGI::Application:: Plugin::DebugScreen

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

Replies are listed 'Best First'.
Re^2: CGI::Application:: Plugin::DebugScreen
by thind (Initiate) on May 30, 2007 at 19:49 UTC
    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
        this error is coming into the code, as i have introduced this error to check if theis DebugScreen module is usefull for development, but till now no luck