VS2019 unable to debug .net core in WSL2

2

hi I have VS 2019 community ver 16.9.4

installed .NET Core Debugging with WSL 2 - 1.0

Created a simple hello world C# console app in both .net core 3.1 and 5.0

Choose WSL2 in debug options and start debug

Getting an error message saying

One or more erros occurred.

Failed to launch debug adapter. Additional information maybe available in the output window.

The operation was canceled.

My output window says

The program '' has exited with code -1 (0xffffffff).

I can confirm that I installed sdk in WSL2 ubuntu 20.04

dotnet --list-sdks

3.1.408 [/usr/share/dotnet/sdk]

5.0.202 [/usr/share/dotnet/sdk]

any ideas?

visual-studio
debugging
wsl-2
asked on Stack Overflow May 9, 2021 by sheepinwild

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0