mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
Add more log points in the probe mode and enable the debuglog int the probe mode tests. Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63663 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
24 lines
623 B
JavaScript
24 lines
623 B
JavaScript
// 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,
|
|
});
|