-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debugger: call
this.resume()
after this.run()
When the debugger has started we need to call `this.resume` otherwise, the prompt won't appear. Fixes: #9854 PR-URL: #10099 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
- Loading branch information
1 parent
cc60909
commit bde31f7
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use strict'; | ||
|
||
const assert = require('assert'); | ||
const common = require('../common'); | ||
const spawn = require('child_process').spawn; | ||
|
||
const proc = spawn(process.execPath, ['debug', 'foo']); | ||
proc.stdout.setEncoding('utf8'); | ||
|
||
proc.stdout.once('data', common.mustCall((data) => { | ||
assert.strictEqual(data, 'debug> '); | ||
proc.kill(); | ||
})); |