From 83691ada5bce41b6433cb6c7caaa3f74722820d9 Mon Sep 17 00:00:00 2001 From: Balakrishna Avulapati Date: Fri, 11 Feb 2022 17:17:20 +0530 Subject: [PATCH] debugger: remove duplicate setPauseOnException call Removes the duplicate call of setPauseOnException() inside initAfterStart(). Fixes: https://github.com/nodejs/node/issues/41795 PR-URL: https://github.com/nodejs/node/pull/41838 Reviewed-By: Jan Krems --- 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 });