-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attach mode hang forever when cwd
is empty
#1608
Comments
I debugged it and found it stopped on vscode-go/src/debugAdapter/goDebug.ts Line 437 in 48418d4
|
Thanks for the report @icexin @suzmue It looks like we should've set 'cwd' even for the 'local' attach mode for legacy mode. vscode-go/src/goDebugConfiguration.ts Lines 208 to 222 in 72e205b
And, I think even for the dlv-dap mode, we can set this - currently we launch dlv dap from vscode-go/src/goDebugFactory.ts Line 362 in 72e205b
|
Change https://golang.org/cl/334111 mentions this issue: |
For asking questions, see:
#vscode
channel in Gophers SlackBefore filing an issue, please review our troubleshooting guides
Please answer these questions before submitting your issue. Thanks!
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Go from the VS Code integrated terminal.go version go1.13.8 darwin/amd64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Check your installed extensions to get the version of the VS Code Go extension
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Describe the bug
In debug mode, if I select the
request
field asattach
and thecwd
field is empty, vscode will not respond after clicking the debug button.Steps to reproduce the behavior:
configuration of debug:
The text was updated successfully, but these errors were encountered: