Writing to the console

  System.Diagnostics.Debug.WriteLine("My Value: " + Convert.ToString(MyVariable)); or using System.Diagnostics; Debug.WriteLine("My Value: " + Convert.ToString(MyVariable));  

Read More