using Console.Writeline mvs windows form code example Example: mvc write to console Debug.WriteLine("My debug string here");