Writing to the console

Write strings to the console System.Diagnostics.Debug.WriteLine("My Value: " + Convert.ToString(MyVariable)); or using System.Diagnostics; Debug.WriteLine("My Value: " + Convert.ToString(MyVariable)); Display a byte array as a string System.Diagnostics.Debug.WriteLine("CommsByteArray: " + Encoding.UTF8.GetString(CommsByteArray));  

Read More