Re: [go-nuts] use delve to debug golang with 'next' will skip some step

2021-07-28 Thread 'drc...@google.com' via golang-nuts
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

Re: [go-nuts] use delve to debug golang with 'next' will skip some step

2021-07-27 Thread jake...@gmail.com
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