private static void WriteToDebugger(string message) { if (Debugger.IsLogging()) { Debugger.Log(0, null, message); } else { Interop.Sys.SysLog(Interop.Sys.SysLogPriority.LOG_USER | Interop.Sys.SysLogPriority.LOG_DEBUG, "%s", message); } }