From a2b9eaf4e191401424436c571aad4a80bf238ee9 Mon Sep 17 00:00:00 2001 From: Divyanshu Sharma Date: Fri, 5 Jun 2026 22:23:26 +0530 Subject: [PATCH] debugger: fix spawn args when path contains special characters Signed-off-by: Divyanshu Sharma --- lib/internal/debugger/inspect_helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/debugger/inspect_helpers.js b/lib/internal/debugger/inspect_helpers.js index d0049acc06cd22..7905c058d73b5d 100644 --- a/lib/internal/debugger/inspect_helpers.js +++ b/lib/internal/debugger/inspect_helpers.js @@ -138,7 +138,7 @@ async function launchChildProcess(childArgs, inspectHost, inspectPort, const args = [`--inspect-brk=${inspectPort}`]; ArrayPrototypePushApply(args, childArgs); - const child = spawn(process.execPath, args); + const child = spawn(process.execPath, args, { shell: false }); child.stdout.setEncoding('utf8'); child.stderr.setEncoding('utf8'); child.stdout.on('data', (chunk) => childOutput(chunk, 'stdout'));