You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What operating system and processor architecture are you using?
windows/amd64
What did you do?
Debugged the program with breakpoint on line 16
package main
type T struct {
m map[int]int
}
func main() {
t := T{
m: make(map[int]int),
}
t.Inc(5)
t.Inc(7)
}
func (s *T) Inc(key int) {
v := s.m[key] // break, line 16
v++
s.m[key] = v // also here
}
Once breakpoint is reached issued the 'next' command.
What did you expect to see?
Debugger stops at the next line.
What did you see instead?
Debugger stops at the method header line, one more 'next' brings us back to the line with a breakpoint, one more 'next' moves to the next line 17. It looks like it happens on access to a map field of the receiver, e.g. it happens on line 18 as well.
Same behavior in go1.17.11, but works as expected in go 1.16.15.
The text was updated successfully, but these errors were encountered:
dlv version
)?go version
)?Debugged the program with breakpoint on line 16
Once breakpoint is reached issued the 'next' command.
Debugger stops at the next line.
Debugger stops at the method header line, one more 'next' brings us back to the line with a breakpoint, one more 'next' moves to the next line 17. It looks like it happens on access to a map field of the receiver, e.g. it happens on line 18 as well.
Same behavior in go1.17.11, but works as expected in go 1.16.15.
The text was updated successfully, but these errors were encountered: