blob: 533fe426cf2debf02558008a1442b3f366857129 [file] [edit]
// This tests that child Node.js flags require -- in probe mode.
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
const fixtures = require('../common/fixtures');
const { spawnSyncAndExit } = require('../common/child_process');
const cwd = fixtures.path('debugger');
spawnSyncAndExit(process.execPath, [
'inspect',
'--probe', 'probe.js:12',
'--expr', 'finalValue',
'--inspect-port=0',
'probe.js',
], { cwd, env: { ...process.env, NODE_DEBUG: 'inspect_probe' } }, {
signal: null,
status: 9,
stderr: /Use -- before child Node\.js flags in probe mode/,
trim: true,
});