-
Notifications
You must be signed in to change notification settings - Fork 758
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
debug: gcflags set by user should be ignored when debugging #117
Comments
@hyangah: How do you feel about this? I am nervous the ignore any user-set flags, and would maybe prefer to surface an error message. |
This would be similar to the other issue where we have user set GOOS and GOARCH. Basically user settings that would mess with delve |
Removing gcflags, GOOS, GOARCH when launching through debugger makes sense. We will do it. /cc @suzmue @polinasok @suzmue also questioned whether we should apply similar changes on GOOS/GOARCH when running tests. |
Change https://golang.org/cl/265580 mentions this issue: |
Hi, I need -gcflags='-G=3' to enable generics. But seems vscode cannot do this. Neither gopls nor dlv-dap is using the gcflags and they all complain about grammar error which is valid when generics is enabled |
@szmcdull If you want dlv to build things for you, then it will supply its own |
As described in microsoft/vscode-go#2415, gcflags set by the user interferes with debugging. This issue is to have the extension ignore this setting when debugging.
While microsoft/vscode-go#2415 is about debugging tests, this may apply to normal debugging as well
The text was updated successfully, but these errors were encountered: