diff --git a/lib/internal/inspector/_inspect.js b/lib/internal/inspector/_inspect.js index b326a772fd39c9..43e62c874dc82c 100644 --- a/lib/internal/inspector/_inspect.js +++ b/lib/internal/inspector/_inspect.js @@ -261,10 +261,10 @@ class NodeInspector { print(text, appendNewline = false) { this.clearLine(); - this.stdout.write(appendNewline ? `${text}\n` : text); + this.stdout.write(appendNewline ? `${text}\n` : text); } - #stdioBuffers = {stdout: '', stderr: ''}; + #stdioBuffers = { stdout: '', stderr: '' }; childPrint(text, which) { const lines = (this.#stdioBuffers[which] + text) .split(/\r\n|\r|\n/g); @@ -283,7 +283,7 @@ class NodeInspector { this.repl.displayPrompt(true); } } - + if (textToPrint.endsWith('Waiting for the debugger to disconnect...\n')) { this.killChild(); }