delve: Missing debug_info entries and text symbols for some functions on macOS with cgo
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output, stacktraces, etc) as linked gists.
- What version of Delve are you using (
dlv version
)? 1.2.0 - What version of Go are you using? (
go version
)? 1.12.7 - What operating system and processor architecture are you using? Mac OS 10.14.5, darwin/amd64
- What did you do?
I’ve tried to set breakpoint in the nested packages of my project by
break <project>/cmd/root.go:28
- What did you expect to see? Breakpoint is set
- What did you see instead?
Command failed: could not find /Users/<user>/Projects/go/src/<project>/cmd/root.go:28
(this file exists)
It works fine with main.go in the project root:
(dlv) break <project>/main.go:6
Breakpoint 1 set at 0x49d331b for main.main() ./main.go:6
But doesn’t work with any packages inside.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 32 (22 by maintainers)
This should be fixed upstream. If you grab go at HEAD, you should be able to debug this now.
Thanks for reporting!
I’ve filed a bug with Apple, but I don’t have a public link I can share. I’ll update here as I know more.