Is your feature request related to a problem? Please describe.
hi
Sometime, dont clearly know which handler to call, so dont eaily to directly break at the func.
VS Code Go extension:v0.41.0
type handler func(s string)
func myHandler(s string) {
fmt.Println(s) // not stop at this line
}
func main() {
h := handler(myHandler)
go h("Hello, World!")// set a breakpoint on this line and use step into
time.Sleep(8 * time.Second)// but stop at this line
}
Describe the solution you'd like
await call(sth)
Like debuging js through chrome, we can set a breakpoint either on await or on call. (Maybe inappropriate analogy)
Describe alternatives you've considered
If there a viable alternative to jump through the value of variable. Also like debuging js through chrome, if the value is a callable obj, we can directly jump into the function and can also set the breakpoint.
If we can monitor when a new coroutine start to run.
Additional context
It works fine if I use as follow:
go func(){
h("Hello, World!")}() // set breakpoint on this line, but kind of tedious
Is your feature request related to a problem? Please describe. hi Sometime, dont clearly know which handler to call, so dont eaily to directly break at the func. VS Code Go extension:v0.41.0
Describe the solution you'd like
Like debuging js through chrome, we can set a breakpoint either on
await
or oncall
. (Maybe inappropriate analogy)Describe alternatives you've considered
If there a viable alternative to jump through the value of variable. Also like debuging js through chrome, if the value is a callable obj, we can directly jump into the function and can also set the breakpoint.![issue1](https://github.com/golang/vscode-go/assets/22652958/b3eff68b-122b-44f2-ab69-14e4f5da1953)
If we can monitor when a new coroutine start to run.
Additional context It works fine if I use as follow:
Many thanks to you!