From e9d4b86161a82be98f5b1339115efc26e6ba280c Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Mon, 14 Jul 2025 14:00:02 -0500 Subject: [PATCH] dap: always return the error from execution if we paused on an error and resume Signed-off-by: Jonathan A. Sternberg --- dap/thread.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dap/thread.go b/dap/thread.go index 5e15d4f4..b2ba5cb0 100644 --- a/dap/thread.go +++ b/dap/thread.go @@ -94,6 +94,9 @@ func (t *thread) Evaluate(ctx Context, c gateway.Client, ref gateway.Reference, select { case step = <-t.pause(ctx, err, event): + if err != nil { + return err + } case <-ctx.Done(): return context.Cause(ctx) }