c# print in output code example Example: visual studio c# print to console using System.Diagnostics Debug.WriteLine("Send to debug output window");