mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 14:32:49 +00:00

PR-URL: https://github.com/nodejs/node/pull/46881 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
19 lines
333 B
JavaScript
19 lines
333 B
JavaScript
'use strict';
|
|
|
|
// `node inspect ...` or `node debug ...`
|
|
|
|
const {
|
|
prepareMainThreadExecution,
|
|
markBootstrapComplete,
|
|
} = require('internal/process/pre_execution');
|
|
|
|
prepareMainThreadExecution();
|
|
|
|
|
|
markBootstrapComplete();
|
|
|
|
// Start the debugger agent.
|
|
process.nextTick(() => {
|
|
require('internal/debugger/inspect').start();
|
|
});
|