You could always wrap console directives in IF conditionals so they only invoke in debug mode.
There are two ways to invoke debug, the commandline and with the debug command inline. Using the GetCommandLine() function, you can test for it... well... on the commandline. For inline debugging, some ppl make use of a $debug var to control various aspects of their script such as verbosity to the console and/or logfiles and/or single-stepping through certain sections.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.