mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
All other files in `lib/internal` do not start with `_`. For consistency, move `lib/internal/debugger/_inspect.js` to `lib/internal/debugger/inspect.js`. PR-URL: https://github.com/nodejs/node/pull/39378 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
23 lines
477 B
JavaScript
23 lines
477 B
JavaScript
'use strict';
|
|
|
|
// `node inspect ...` or `node debug ...`
|
|
|
|
const {
|
|
prepareMainThreadExecution
|
|
} = require('internal/bootstrap/pre_execution');
|
|
|
|
prepareMainThreadExecution();
|
|
|
|
if (process.argv[1] === 'debug') {
|
|
process.emitWarning(
|
|
'`node debug` is deprecated. Please use `node inspect` instead.',
|
|
'DeprecationWarning', 'DEP0068');
|
|
}
|
|
|
|
markBootstrapComplete();
|
|
|
|
// Start the debugger agent.
|
|
process.nextTick(() => {
|
|
require('internal/debugger/inspect').start();
|
|
});
|