1'use strict'; 2 3// `node inspect ...` or `node debug ...` 4 5const { 6 prepareMainThreadExecution 7} = require('internal/bootstrap/pre_execution'); 8 9prepareMainThreadExecution(); 10 11if (process.argv[1] === 'debug') { 12 process.emitWarning( 13 '`node debug` is deprecated. Please use `node inspect` instead.', 14 'DeprecationWarning', 'DEP0068'); 15} 16 17markBootstrapComplete(); 18 19// Start the debugger agent. 20process.nextTick(() => { 21 require('internal/debugger/inspect').start(); 22}); 23