Method DebugTraceListener.Setup Overload Replaces default trace listener. public static void Setup(bool usePrint) Parameters usePrint (bool) Also set print.redirectDebugOutput = true.