Writing to output window of C# Visual Studio
Add theSystem.Diagnostics
namespace, and then you can use Debug.WriteLine()
to quickly print a message to the output window of the IDE. Example
using System.Diagnostics;
public class Program
{
public static void Main()
{
Debug.WriteLine("Send to debug output window");
}
}