RAA - debugprint/none

debugprint / none

Short description: A shortcut to typical debug / verbose print statements
Category: Library/debugging/logging
Status: stable
Created: 2003-07-31 04:47:14 GMT
Last update: 2004-06-22 20:21:04 GMT
Owner: Ben Giddings (Projects of this owner)
Homepage: http://infofiend.com/debugprint/
Download: http://infofiend.com/debugprint/debugprint.tar.gz
License: Ruby's
Dependency:
None
Description:

Synopsis:

require 'debugprint'

def doSomethingComplex
debug("Starting to do something complex")
...
info("#{count} entries processed")
...
debug("Done complex task")
end

If $DEBUG is set, debug() acts like $stderr.puts(), if $VERBOSE is set, info() acts like $stdout.puts(), otherwise they do nothing. Note that $VERBOSE is set with the -v flag to ruby, and $DEBUG and $VERBOSE are set with the -d flag to ruby.

Versions: [1.0.0 (2005-08-07)] [none (2004-06-22)] [Version 0.55 (-)]

Edit this project (for project owner)

back to RAA top