Hi,
tl;dr would it be possible to break as soon as any function returns a non-nil error?
Apologies if this has already been requested. I did several searches but was unable to find an equivalent request.
More detail:
Go treats errors as first-class values. When a function returns an error, that error tends to bubble up the stack. The original source of the error is often lost and hard to track down. This is improving with Go 1.13's wrapped errors, but still requires the programmer to explicitly wrap those errors.
It would be really nice if there was a "continue until any function returns a non-nil error" command. This would require instrumenting any return statement that returns an error value, stopping execution at that point, and consequently reveal the underlying source of a bubbled-up error. Repeating the command would follow the bubbled error up the stack.
Many thanks for Delve - it's been invaluable for me.
Tom