Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Updated with WSL 2 notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatnode committed Apr 16, 2020
1 parent 7383e03 commit 7d9a2be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/Debugging-Go-code-using-VS-Code.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ You may see this in the debug console, while trying to run in the `test` mode. T

**_Solution_**: Ensure that the `program` attribute points to the folder that contains the test files you want to run.

#### delve/launch hangs with no messages
Try running ```delve debug ./main``` at the WSL command line and see if you get a prompt

**_Solution_**: Ensure you are running the WSL 2 Kernel, which (as of 4/15/2020) requires an early release of the Windows 10 OS. This is available to anyone via the Windows Insider program. See [WSL 2 Installation](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install)

#### could not launch process: could not fork/exec

##### OSX
Expand All @@ -258,4 +263,4 @@ Check the version of delve api being used in the remote delve process i.e check

#### Try using dlv from the terminal/command-line

Add `"trace": "log"` to your debug configuration and debug in VS Code. This will send logs to the debug console where you can see the actual call being made to dlv. You can copy that and run it in your terminal
Add `"trace": "log"` to your debug configuration and debug in VS Code. This will send logs to the debug console where you can see the actual call being made to dlv. You can copy that and run it in your terminal

0 comments on commit 7d9a2be

Please sign in to comment.