MCPcopy Index your code
hub / github.com/nodejs/node / initAfterStart

Function initAfterStart

lib/internal/debugger/inspect_repl.js:1202–1220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1200 }
1201
1202 async function initAfterStart() {
1203 waitForInitialBreakRender =
1204 !!inspector.options?.script &&
1205 process.env.NODE_INSPECT_RESUME_ON_START !== '1';
1206 await Runtime.enable();
1207 await Profiler.enable();
1208 await Profiler.setSamplingInterval({ interval: 100 });
1209 await Debugger.enable();
1210 await Debugger.setAsyncCallStackDepth({ maxDepth: 0 });
1211 await Debugger.setBlackboxPatterns({ patterns: [] });
1212 await Debugger.setPauseOnExceptions({ state: pauseOnExceptionState });
1213 await restoreBreakpoints();
1214 await Runtime.runIfWaitingForDebugger();
1215 await PromiseResolve();
1216 waitForInitialBreakRender = false;
1217 const initialBreakRenderPromise = initialBreakRender;
1218 initialBreakRender = null;
1219 await initialBreakRenderPromise;
1220 }
1221
1222 return async function startRepl() {
1223 inspector.client.on('close', () => {

Callers 2

runAndInitFunction · 0.85
createReplFunction · 0.85

Calls 2

restoreBreakpointsFunction · 0.85
enableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…