I have written a simple console application targeting .Net5. It's working as expected. I am running the application with the WSL 2 profile now. It's running successfully, but not showing output as it shows for the normal console application (I mean it is not showing the window itself). It is hitting the breakpoint as well. Based on this article, My understanding is we can debug the application in Linux from a Windows machine.
So how can I see the output of the console application? Also, does it create any folder or files in Linux?
static void Main(string[] args)
{
Console.WriteLine("Hello");
Console.Read();
}
You can click Debug->windows->output to show the output.

Then, you can choose where you want to show the output.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With