cmd/compile: DWARF Incorrect location list #47850
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
The problem exists on 1.14.9 and 1.17RC2 as well
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Using some debuggers like Delve I tried to debug below code and monitor some local variable inside
printParams
function. I put a break point on line 16 which is the 5th line in the mentioned function usingbreak main.printParams:5
What did you expect to see?
When stopping at line 16 and tried to read the local variable using
locals
in delve, the result was this:What did you see instead?
I expected to be able to see the value of variable
i
something like below:The text was updated successfully, but these errors were encountered: