-
Notifications
You must be signed in to change notification settings - Fork 795
Cannot debug glfw: error reading debug_info: decoding dwarf section line_str at offset 0x0: underflow #1914
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
Comments
@dah33 Thanks for the report. Can you please try debugging with
|
Looks very broken:
If I remove the
So it seems like my code is silently breaking the command line debugger? |
Assuming you installed all the libraries required to correctly use
Since |
@dah33 Thank you so much for sharing the binary. I see some compile units from c99/C11 with DWARF5. btw I was curious so I tried to reproduce the issue from my windows box today, but failed to reproduce it using the example repro case. Skimming through the debug info, I see @dah33 and I used different mingw installation (mingw-w64-crt vs |
@hyangah I think you are using older mingw (msys2). I could debug in msys2 before but after updating to msys2-x86_64-20210725 I got into the same situation as go-delve/delve#2786. |
@annomel Of course, toolings in my mingw-w64 installation is older than mingw-w64-crt so it generates DWARF4 not DWARF5. The culprit is delve and the std library delve depended on didn't handle DWARF5. It's delve and go's issue, so I am closing it. Until then, use old toolings, or try delve built from the master branch with the Go built from tip. |
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
None.
Describe the bug
Running the debugger I get a modal dialog: "Failed to launch: could not launch process: error reading debug_info: decoding dwarf section line_str at offset 0x0: underflow"
main.go
launch.json
go.mod
go.sum
The text was updated successfully, but these errors were encountered: