2015-10-29 13:39:56 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const common = require('../common');
|
|
|
|
const assert = require('assert');
|
|
|
|
const spawnSync = require('child_process').spawnSync;
|
|
|
|
|
2016-02-15 07:46:58 -08:00
|
|
|
const args = [`--debug-brk=${common.PORT}`, '-e', '0'];
|
2015-10-29 13:39:56 +01:00
|
|
|
const proc = spawnSync(process.execPath, args, {encoding: 'utf8'});
|
|
|
|
assert(/Debugger listening on/.test(proc.stderr));
|