cmd/compile: Adding -gcflags "all=-N -l"
does not add debugging information.
#64082
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Master branch compilations cannot be debugged using dlv.
Programs built with the
-gcflags "all=-N -l"
parameter cannot be debugged.After investigation, the problem was caused by changes to https://go-review.googlesource.com/c/go/+/461697
When I change back to the historical version of the code, I can debug it properly
What did you expect to see?
Be able to use dlv to debug programs properly
What did you see instead?
cannot be debugged
The text was updated successfully, but these errors were encountered: