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

Method onScriptParsed

lib/internal/debugger/inspect_probe.js:877–884  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

875 }
876
877 onScriptParsed(params) {
878 if (params.url && !StringPrototypeStartsWith(params.url, 'node:')) {
879 debug('scriptParsed: scriptId=%s url=%s, length=%d', params.scriptId, params.url, params.length);
880 }
881 // This map grows by the number of scripts parsed, which is limited, and is just a
882 // small string -> string map. The lifetime is bounded by probe timeout etc. so cleanup is overkill.
883 this.scriptIdToUrl.set(params.scriptId, params.url);
884 }
885
886 async bindBreakpoints() {
887 const uniqueTargets = new SafeMap();

Calls 2

debugFunction · 0.50
setMethod · 0.45

Tested by 1

testFunction · 0.64