Debug.printlnIf

Overview | Methods | This Package | All Packages

Debug.printlnIf

Prints the specified message to the current debug output mechanism.

Syntax

public static void printlnIf( boolean condition, String message )

public static void printlnIf( String name, String message )

Parameters

condition

The condition by which the message should be printed.

message

The message to print.

name

The name of the switch to check.

Remarks

By default, this method prints through System.out.println to the screen. If you are running the program from within a native code debugger, this outputs to the debugger's window. This method will be omitted from your code unless you have the DEBUG conditional compile switch set.