3 ms·
Not at all. Non-cooperative goroutines would make it much harder to implement a debugger. Delve crashing is just related to Delve being buggy. Single-stepping
by arghwhat 9y ago
Not at all. Non-cooperative goroutines would make it much harder to implement a debugger.
Delve crashing is just related to Delve being buggy. Single-stepping is done at the instruction level, and the task of a Go debugger mostly relates to mapping instructions to source code, and understanding the runtime.
You can debug Go with gdb, but without Go runtime comprehension, all you will see is a bunch of worker threads executing Go runtime code, rather than the individual goroutines of your process.