We can get the throw reason by looking at the argument "s" in runtime.throw. This is not currently working in Go 1.16 or Go 1.17 (see golang/go#46425), but does work in Go 1.15 and Go 1.14 |
||
|---|---|---|
| .. | ||
| debugger_darwin.go | ||
| debugger_freebsd.go | ||
| debugger_linux.go | ||
| debugger_test.go | ||
| debugger_unix_test.go | ||
| debugger_unix.go | ||
| debugger_windows.go | ||
| debugger.go | ||