That debugging is (now) in the runtime package, which is (always) compiled
with optimizations on.
That will tend to interfere with debugging. The 1.17 change to use
registers for passing parameters
has also caused some regressions in debugging quality (and it would be nice
to fix those, but it
Was the code built with optimizations disabled?
On Tuesday, July 27, 2021 at 1:57:17 PM UTC-4 林 子鹏 wrote:
> When I use delve to debug this project(dlv debug t.go):
>
> //t.gopackage main
> import (
> "fmt"
> "os"
> "reflect"
> "unsafe"
> )
> func main() {
> s1 := make([]uint8