Sha256: dfba8155e893e20c5af67b1972c3b8b574fb9103f6f943400b304d5def8e3917

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 Bytes

Contents

'use strict';
var common = require('../common');
var assert = require('assert');
var spawn = require('child_process').spawn;

var script = common.fixturesDir + '/empty.js';

function fail() {
  assert(0); // `node --debug-brk script.js` should not quit
}

function test(arg) {
  var child = spawn(process.execPath, [arg, script]);
  child.on('exit', fail);

  // give node time to start up the debugger
  setTimeout(function() {
    child.removeListener('exit', fail);
    child.kill();
  }, 2000);

  process.on('exit', function() {
    assert(child.killed);
  });
}

test('--debug-brk');
test('--debug-brk=5959');

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/sequential/test-debugger-debug-brk.js
node-compiler-0.9.0 vendor/node-v7.2.1/test/sequential/test-debugger-debug-brk.js
node-compiler-0.8.0 vendor/node-v7.2.0/test/sequential/test-debugger-debug-brk.js
node-compiler-0.7.0 vendor/node-v6.9.1/test/sequential/test-debugger-debug-brk.js
node-compiler-0.7.0 vendor/node-v7.1.0/test/sequential/test-debugger-debug-brk.js