23 lines
491 B
JavaScript
23 lines
491 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/deps/node-inspect/lib/_inspect').start();
|
||
|
});
|