Path: usenet.cise.ufl.edu!huron.eel.ufl.edu!usenet.eel.ufl.edu!uky.edu!atl-news-feed1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.primenet.com!news.maxwell.syr.edu!newsfeed.corridex.com!nntp2.savvis.net!inetarena.com!not-for-mail
From: Jonas Liljegren <[email protected]>
Newsgroups: comp.lang.perl.announce,comp.lang.perl.modules
Subject: ANNOUNCE: CGI::Debug 0.03 alpha
Followup-To: comp.lang.perl.modules
Date: 3 May 1999 15:25:26 GMT
Organization: Internet Arena
Lines: 92
Approved: [email protected] (comp.lang.perl.announce)
Message-ID: <[email protected]>
Reply-To: [email protected]
NNTP-Posting-Host: halfdome.holdit.com
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content.
Xref: usenet.cise.ufl.edu comp.lang.perl.announce:295 comp.lang.perl.modules:10887

CGI::Debug  v0.03 alpha   -   module for debugging CGI programs.

NOT on CPAN. Get it here:
       http://paranormal.o.se/perl/dist/CGI-Debug-0_03.tar.gz

Would you find this module useful?  Please mail me.



It's goal is to catch ALL errors and display them, along with useful
data like form data, cookies, etc. You should never see the "Internal
Server Error" message.

The module will not change the behaviour of your cgi program.  As long
as your program works, you will not notice the modules presence. The
only ting you will have to do is "use CGI::Debug". Then your program
works, you can just remove the line.

It's highly configurable. Choose what functions to use.

Report
o  warnings
o  runtime errors
o  compilation errors
o  faulty HTTP headers
o  Form data
o  Cookies
o  Enviroment
o  Elapsed time in subseconds

Report
o  to Browser
o  to error log
o  to file
o  as mail to owner and/or others

Report
o  if warnings occured
o  if program died
o  always


Configure with cookies, or enviroment variables, or on the use
line.  This makes it possible


EXAMPLES

Only report errors:
   use CGI::Debug( report => 'errors' );

Do not bother about warnings:
   use CGI::Debug( on => 'fatals' );

Allways show complete debugging info:
   use CGI::Debug( report => 'everything', on => 'anything' );

Send debug data as mail to file owner:
   use CGI::Debug( to => 'mail' );


REQUIRES

o  CGI
o  perl 5.004


TODO

o Clean up and generalize configuration

o Test it on non *nix platforms

o Make it work with mod_perl

o Implement HTML_compliance controls (using HTML::validate)

o Implement function for debugging in a separate window

o Enable custom responses for visitors on program failure


AUTHOR

 Jonas Liljegren <[email protected]>



--
Jonas Liljegren      mailto:[email protected]