go-delve / delve

Delve is a debugger for the Go programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

closure captures

SOF3 opened this issue · comments

It would be useful to get the captured variables when we get a closure.

Right now the only way to guess what is behind a closure is to x -fmt hex -count 2 -size 8 -x &closure, copy the second number, then x -count {n} -size 1 {paste} and guess the structure of the closure. I don't know if delve can infer the structure behind a closure, but I would prefer to at least make this process a bit simpler and more convenient.