如何使用WSL正确配置Visual Studio代码远程开发以调试Go应用?

I'm trying out the remote development in Visual Studio code with go and the windows subsystem for Linux and can't seem to get debug going. I'm looking for some tips on how this works or confirmation that its not supported yet.

I have tried multiple launch configurations along with no configuration (the default). The debug console only says this "API server listening at: 127.0.0.1:23037.

I have a breakpoint set in my main function that is never hit. Also, in my main function, there are other fmt.Println() which also never show up in the debug console. Attempting to hit my server via a rest client results in an error could not connect to server. When I don't use the remote development mode I am able to debug the app in windows successfully with no launch configuration just by hitting F5 from in my main.go file. Also I am able to successfully run my app in the WSL from a command line.