We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2edb59 commit 4e60ce8Copy full SHA for 4e60ce8
test/sequential/test-debug-prompt.js
@@ -7,9 +7,12 @@ const spawn = require('child_process').spawn;
7
const proc = spawn(process.execPath, ['inspect', 'foo']);
8
proc.stdout.setEncoding('utf8');
9
10
+let needToSendExit = true;
11
let output = '';
12
proc.stdout.on('data', (data) => {
13
output += data;
- if (output.includes('debug> '))
14
+ if (output.includes('debug> ') && needToSendExit) {
15
proc.stdin.write('.exit\n');
16
+ needToSendExit = false;
17
+ }
18
});
0 commit comments