Debugging interactive Linux .NET console app from Visual Studio

Viewed 225

I'm trying to debug an interactive console app for Linux on WSL from Visual Studio (not VS Code).

The instructions from Microsoft mostly work: https://docs.microsoft.com/en-us/visualstudio/debugger/debug-dotnet-core-in-wsl-2?view=vs-2022

I can run the application, set a breakpoint and hit it. My problem is that the application is interactive and requires input from the console, but no console window is showing, so the WSL process just hangs.

Is there a way to access the console while debugging a WSL app? I do not see any way to edit the debug profile for "WSL".

0 Answers
Related