in reply to Re^3: I usually debug via...
in thread I usually debug via...
When I write CGI scripts, I like to have a &printError(); routine. Then all my debug statments call &printError("Message", $debug_level);. Based either on a config file, or and environment variable, &printError(); can decide whether or not $debug_level is high enough to send the message out to STDERR.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: I usually debug via...
by bunnyman (Hermit) on Feb 17, 2005 at 15:27 UTC |