View console.writeline in MVC code example Example: mvc write to console Debug.WriteLine("My debug string here");