Read input when debugging console in wsl2 in VS2022

Viewed 174

I have created a console application in Visual Studio 2022 that is just the two lines WriteLine and ReadLine. When Debugging it for Windows, a console opens that shows the output and waits for the input. However, if I switch it to debugging for WSL, I get the output in the “Output” window, but I do not find any way of entering any data to stdin of the program, thus getting stuck at the readline. Is there a way of doing this? Maybe have Visual Studio open a console window instead of using the output window in Visual Studio as it does for the Windows application?

0 Answers
Related