mirror of https://github.com/nodejs/node.git
15 lines
359 B
JavaScript
15 lines
359 B
JavaScript
|
var common = require('../common');
|
||
|
var assert = require('assert');
|
||
|
var spawn = require('child_process').spawn;
|
||
|
|
||
|
var child = spawn(process.execPath, ['--debug-brk=' + common.PORT]);
|
||
|
child.stderr.once('data', function(c) {
|
||
|
console.error('%j', c.toString());
|
||
|
child.stdin.end();
|
||
|
});
|
||
|
|
||
|
child.on('exit', function(c) {
|
||
|
assert(c === 0);
|
||
|
console.log('ok');
|
||
|
});
|