-
Notifications
You must be signed in to change notification settings - Fork 651
Build tags ignored when debugging #3185
Comments
I briefly looked into how Anyway - @ramya-rao-a we can compute and plumb the @cfiderer you can specify the tags (and other go build flags) using the
|
@hyangah thank you for the tip: not nice, but a workaround. |
Note on passing build tags via the debug configuration: https://github.com/microsoft/vscode-go/wiki/Debugging-Go-code-using-VS-Code#using-build-tags Some history here:
So, yes. We can compute the right flags and tags in the resolveDebugConfiguration() method |
Hey @cfiderer, We are in the midst of a repo move, see We are moving section in our readme for more details. Closing this issue in favor of golang/vscode-go#128. Please subscribe to it for further updates Thanks for all the support & Happy Coding! |
Please direct general questions to:
Please review the Wiki before filing an issue.
Helpful pages include:
Please answer these questions before submitting your issue. Thanks!
What version of Go, VS Code & VS Code Go extension are you using?
Run
go version
to get version of GoRun
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders1.44.1
a9f8623ec050e5f0b44cc8ce8204a1455884749f
x64
Check your installed extensions to get the version of the VS Code Go extension
Run
go env GOOS GOARCH
to get the operating system and processor architecture detailswindows
amd64
Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
prefixes.buildflags.zip
Describe the bug
A clear and concise description of what the bug.
When I debug the main program, I end up in the doSomething() function from the withoutTag.go file (without "myTag").
A clear and concise description of what you expected to happen.
I expect the configured build tag to be passed to dlv, so that the generated code uses the doSomething() function from withTag.go.
Debugging with buildflags used to work well in the past.
Running the code with
go run -tags myTag .
in the Terminal window works fine.Steps to reproduce the behavior:
Use VS Code with the Go extension and the dlv debugger installed.
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
The text was updated successfully, but these errors were encountered: