-
Notifications
You must be signed in to change notification settings - Fork 645
Add note about needing WSL 2 on Windows 10 #3167
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
mpatnode marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ramya-rao-a Wasn't sure what to do with this dangler. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, which dangler? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "could not launch process: could not fork/exec" line has no explanation or solution There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah! The solution to that is split for Mac vs Linux, looks like the lack of indentation isnt helping anyone :) I'll fix that |
||
|
||
##### OSX | ||
|
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its not clear to me as to why we want to call this out. Can you elaborate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default WSL uses syscall mapping, hence delve just hangs on the trace() call. You need to join the Windows Insiders program and get the latest version of the OS, and then you can install the WSL 2 kernel, which is a true virtualized machine.