Paranoid::Debug

Trace message support for paranoid programs
Download

Paranoid::Debug Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Arthur Corliss
  • Publisher web site:
  • http://search.cpan.org/~corliss/CursesForms-1.997/Forms.pm

Paranoid::Debug Tags


Paranoid::Debug Description

Trace message support for paranoid programs Paranoid::Debug is a Perl module to trace message support for paranoid programs.SYNOPSIS use Paranoid::Debug; PDEBUG = 1; PDPREFIX = sub { scalar localtime }; pdebug("starting program", 1); foo(); sub foo { pIn(); pdebug("entering foo()", 2); pOut(); } perror("error msg"); psetDebug(@ARGV);The purpose of this module is to provide a barely useful framework to produce debugging output. With this module you can assign a level of detail to pdebug statements, and they'll only be displayed when PDEBUG is set to that level or higher. This allows you to have your program produce varying levels of debugging output.Using the pIn and pOut functions at the beginning and end of each function will cause debugging output to be indented appropriately so you can visually see the level of recursion.NOTE: This module provides a function called perror which conflicts with a similar function provided by the POSIX module. If you use this module you should avoid using or importing POSIX's version of this function.NOTE: All modules within the Paranoid framework use this module. Their debug levels range from 9 and up. You should use 1 - 8 for your own modules or code. Requirements: · Perl


Paranoid::Debug Related Software