Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.345.145 Times

Debug::Simple 0.10

Company: Behan Webster
Date Added: June 29, 2013  |  Visits: 348

Debug::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



Debug::Simple is a Perl module which provides a very simple way to provide debug/verbose/warning messages. It is also trivially controlled via Getopt::Long.<br /><br />The idea is to be able to put a bunch of debugging print statements throughout your code that you can enable or disable.<br /><br />debuglevels(\%OPT)<br /><br /> debuglevels registers the hashref HASH as the place to read values used to control whether text is output to the screen or not. There are 4 values read from this hash: quiet, debug, verbose, and test.<br /><br /> quiet<br /><br /> If non-zero, this will repress all output from Debug::Simple<br /> debug<br /><br /> This indicates the level of debug messages desired. A debug level of 4 prints all the debug messages from levels 1 to 4.<br /> verbose<br /><br /> Like debug, this sets the level of verboseness. A verbose level of 3 prints all verbose messages from 1 to 3.<br /> test<br /><br /> If non-zero, the code passed to test() will be printed to the screen instead of being executed.<br /><br />warning(STRING)<br /><br /> warning prints the STRING to stdout in YELLOW unless the "quiet" level is non-zero (see debuglevels). STRING is prefaced with "Warning:".<br />debug(LEVEL, STRING, [NAME => REF])<br /><br /> debug prints a debugging message to stdout as long as LEVEL is at or below the "debug" level. (see < debuglevels).<br /><br /> The debug message is printed in BOLD. It starts with "Debug: ", then STRING, and then optionally uses Data::Dumper to dump a data structure referred to by REF. NAME is just a human readable name for REF passed to Data::Dumper.<br />verbose(LEVEL, STRING)<br /><br /> verbose prints STRING to stdout as long as LEVEL is at or below the "verbose" level. (see debuglevels).<br />test(CODE)<br /><br /> test executes CODE according to the "test" level. (see debuglevels). If the "test" level is non-zero the code is printed to stdout instead of being executed.<br /><br />SYNOPSIS<br /><br /> use Debug::Simple;<br /><br /> my %opt = (quiet = > 0, debug = > 4, verbose = > 1, test = > 0);<br /> Debug::Simple::debuglevels(\%opt);<br /><br /> warning("This is a warning\m");<br /> debug(1, "This is a level 3 debug message\n");<br /> debug(2, "This is a level 2 debug message with a Dump", NAME => \%opt);<br /> verbose(1, "This is a verbose message\n");<br /> test('print "test code"');

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Debug Debug Simple Debuglevels Debugsimple Level Message Messagequot Messages Nonzero Printed Prints Quiet Quottestquot Quotthis Screen Simple Stdout String Verbose
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


DEBUG::SIMPLE RELATED
Programming  -  pysage 1.5.6
pysage is a lightweight high-level message passing library supporting actor based concurrency. It also extends the "actor model" to support actor partitioning/grouping to further scalability. pysage has a simple high-level interface....
10.24 KB  
Modules  -  FileField AuthCode 6.x-1.0
This module extends the FileField module to allow you to provide a simple text string as a code users must enter before they can download the files attached to a specific file field. There is a new widget type called "Private Download" which adds...
10 KB  
Miscellaneous  -  Debug statements include function name 1.0
This script allows a user to place debug messages, error messages and standard messages throughout a program. The function name and line number will be added to each debug and error message before it is printed out. In addition, each of these...
 
Utilities  -  Yamlog 0.9
Yamlog is an utility written in Python that uses a rotating file that rollovers at 128 KB, it writes messages in YAML format since it's more easy to parse --using the international format for date and time--, and it also logs the higher-level...
10.24 KB  
Libraries  -  Log::Log4perl::FAQ 1.11
Log::Log4perl::FAQ is a Perl module that contains Frequently Asked Questions (FAQ) on Log::Log4perl. This FAQ shows a wide variety of commonly encountered logging tasks and how to solve them in the most elegant way with Log::Log4perl. Most of...
225.28 KB  
Programming  -  Net::Vypress::Chat 0.72.1
Net::Vypress::Chat is object oriented module and can only be used this way. What's about recognise() function i tried to stay as consistent as i can, but some values are mixed up. Module has these methods: new() Initialises new...
10.24 KB  
Clipboard Utilities  -  Expect::Simple 0.04
Expect::Simple is a Perl wrapper around the Expect module which should suffice for simple applications. It hides most of the Expect machinery; the Expect object is available for tweaking if need be. Generally, one starts by creating an...
10.24 KB  
Libraries  -  Pod::Usage 1.35
Pod::Usage, pod2usage() can print a usage message from embedded pod documentation. SYNOPSIS use Pod::Usage my $message_text = "This text precedes the usage message."; my $exit_status = 2; ## The exit status to use my $verbose_level = 0; ##...
97.28 KB  
Networking Tools  -  The Linux UPnP Internet Gateway Device Project 0.92
The Linux UPnP Internet Gateway Device Project is an attempt to begin work on a UPnP Forum-compliant Internet Gateway Device. It allows Windows Messenger or other this kind of programs to use voice/video through a Linux firewall running Iptables....
28.67 KB  
Libraries  -  Locale::Messages 1.16
Locale::Messages is a Perl module with Gettext Like Message Retrieval. SYNOPSIS use Locale::Messages (:locale_h :libintl_h); gettext $msgid; dgettext $textdomain, $msgid; dcgettext $textdomain, $msgid, LC_MESSAGES; ngettext $msgid,...
460.8 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB