how to show console output while debugging in C# code example
Example: c# debug console log
using System.Diagnostics;
// print a message to the output window of the IDE
Debug.WriteLine("Debug Information");
using System.Diagnostics;
// print a message to the output window of the IDE
Debug.WriteLine("Debug Information");