-
Notifications
You must be signed in to change notification settings - Fork 743
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
decoding dwarf section - dlv problem to start app #3547
Comments
Same issue on my side, but only on projects using cgo. This works as expected on non-cgo projects. |
I would say that I made it "work" by downgrading dlv to 1.21.2
but now breakpoint are not stopping, as it says:
|
Can you try to run
|
@tzookb was this using the latest version of Delve? This error message is unusual especially considering Delve is building the binary. The binary seems to be created without any debug information. A few questions:
|
I just installed latest vscode-go, that installed latest dlv, as I don't want to jump hoops around versioning. I tried to see what I can do here: but I get the original error of the issue:
dlv (latest 1.23.1) debug errors now:
we are using a this go version:
|
Could be a duplicate of go-delve/delve#3701, knowing whether you are using CGO would be important. What's the output of |
xcode version:
I couldn't replicate the other pr solution :| |
What about cgo? Does it use it? Also can you post the binary executable built with |
In my case, cgo is heavily used (and I haven't the problem on non-cgo projects) and I've the same problem when using the command line:
|
This looks to be the same issue as: go-delve/delve#1138 (comment) |
cc @cherrymui it could be that the problem that existed with custom clang toolchains now also affects the xcode toolchain. |
I also notified a weird issue that may, or may not be related. Starting the program with
However, executing the binary that is killed through LLDB ( |
I figured out the issue on my side: it is because the project has Edit: the root of the issue was that |
at least for me I noticed that for an app that include packages that needs "CGO_ENABLED" it fails with the mentioned error. it depends on |
@tzookb can you upgrade to go1.23 and see if the problem still reproduces? |
checked with 1.23 |
I think this can be closed. |
do we have a suggestion for go 1.21? |
Thanks @aarzilli @dunglas and @derekparker for your help investigating.
@tzookb as Go 1.21 is not supported by the Go release policy, I don't think we'll be able to help. If you must use 1.21, your solution above (downgrading delve) may be necessary. |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
launch.json:
Describe the bug
running the app like always, but now I get: (attached screenshot)
Screenshots or recordings
The text was updated successfully, but these errors were encountered: