The following module was proposed for inclusion in the Module List:

  modid:       CGI::ShowWarnings
  DSLIP:       RdpOp
  description: Redirect STDERR to web page for debugging
  userid:      MIKO (Miko O'Sullivan)
  chapterid:   15 (World_Wide_Web_HTML_HTTP_CGI)
  communities:

  similar:

  rationale:

    When writing CGI's I frequently find it cumbersome to run a test of
    a CGI, then check my error logs for any warnings. Even if I keep an
    SSH session open and tail -r errorlog, I still have to alt-tab back
    and forth between the browser and the SSH window, then figure out
    which of the errors were caused by the latest run of the CGI.

    CGI::ShowWarnings gets rids of most of that issue by displaying the
    warnings directly in the web page. CGI::ShowWarnings is very simple
    to use:

    use CGI::ShowWarnings; my $warnings = CGI::ShowWarnings->new();

    When the $warnings object grabs STDERR and stores up everything
    sent to STDERR. When $warnings drops out of scope it returns STDERR
    to its normal functionality. It then checks if anything was actually
    sent to STDERR during its reign. If anything was, then the object
    outputs all the errors to STDOUT (ie, to the web browser) in a nice
    neat <PRE> box.

    -Miko

  enteredby:   MIKO (Miko O'Sullivan)
  enteredon:   Tue Feb 26 14:49:35 2002 GMT

The resulting entry would be:

CGI::
::ShowWarnings    RdpOp Redirect STDERR to web page for debugging    MIKO


Thanks for registering,
The Pause Team

PS: The following links are only valid for module list maintainers:

Registration form with editing capabilities:
  
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=4b000000_aec786f8abbde3e9&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
  
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=4b000000_aec786f8abbde3e9&SUBMIT_pause99_add_mod_insertit=1

Reply via email to