public class TDebug
extends java.lang.Object
TDebug is a little helper for low level console debugging. This method
should be the preferred way instead of using System.out.print...(), because
this method avoids unwanted console output.
It is not a replacement for logging! It shall just be used while debugging.
It can be switched on/off via a system property. Default is off.
The preferred usage should be:
if (TDebug.isOn() ) TDebug.println( "Whatever" );
However this:
TDebug.println( "Whatever" );
does it also, except that it does not avoid expression evaluation!
- Version:
- $Revision: 1.1 $
- Author:
- Stefan Liebig