From 371ba07ebbc77575fc783e930b31333b29272a2a Mon Sep 17 00:00:00 2001 From: Bala Avulapati Date: Fri, 4 Feb 2022 02:25:15 +0530 Subject: [PATCH] debugger: remove duplicate setPauseOnException call Removes the duplicate call of setPauseOnException() inside initAfterStart(). Fixes: https://github.com/nodejs/node/issues/41795 --- lib/internal/debugger/inspect_repl.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/internal/debugger/inspect_repl.js b/lib/internal/debugger/inspect_repl.js index 401887cbda5c74..732b6a0f23265a 100644 --- a/lib/internal/debugger/inspect_repl.js +++ b/lib/internal/debugger/inspect_repl.js @@ -1122,7 +1122,6 @@ function createRepl(inspector) { await Profiler.enable(); await Profiler.setSamplingInterval({ interval: 100 }); await Debugger.enable(); - await Debugger.setPauseOnExceptions({ state: 'none' }); await Debugger.setAsyncCallStackDepth({ maxDepth: 0 }); await Debugger.setBlackboxPatterns({ patterns: [] }); await Debugger.setPauseOnExceptions({ state: pauseOnExceptionState });