Tutorial by Examples

Writes to the trace listeners in the Listeners collection when the application is compiled in debug configuration. public static void Main(string[] args) { Debug.WriteLine("Hello"); } In Visual Studio or Xamarin Studio this will appear in the Application Output window. This is d...
You can redirect the debug output to a text file by adding a TextWriterTraceListener to the Debug.Listeners collection. public static void Main(string[] args) { TextWriterTraceListener myWriter = new TextWriterTraceListener(@"debug.txt"); Debug.Listeners.Add(myWriter); Deb...

Page 1 of 1