From 35cdb9db4f84f102ca1d807cab5806e8085e8895 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Thu, 28 May 2026 19:49:22 -0700 Subject: [PATCH] debugger: avoid probe timeouts on target throws Probe mode expects uncaught target exceptions to end the debuggee and emit probe_target_exit. Disable exception pauses during probe setup so the target can exit instead of remaining paused until the timeout. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 --- lib/internal/debugger/inspect_probe.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/debugger/inspect_probe.js b/lib/internal/debugger/inspect_probe.js index fc9f3056f52341..551eb9c4c7aefc 100644 --- a/lib/internal/debugger/inspect_probe.js +++ b/lib/internal/debugger/inspect_probe.js @@ -944,6 +944,7 @@ class ProbeInspectorSession { try { await this.callCdp('Runtime.enable'); await this.callCdp('Debugger.enable'); + await this.callCdp('Debugger.setPauseOnExceptions', { state: 'none' }); await this.bindBreakpoints(); this.started = true; this.startTimeout();