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

Function handleBreakpointResolved

lib/internal/debugger/inspect_repl.js:706–722  ·  view source on GitHub ↗
({ breakpointId, location })

Source from the content-addressed store, hash-verified

704 }
705
706 function handleBreakpointResolved({ breakpointId, location }) {
707 const script = knownScripts[location.scriptId];
708 const scriptUrl = script?.url;
709 if (scriptUrl) {
710 ObjectAssign(location, { scriptUrl });
711 }
712 const isExisting = ArrayPrototypeSome(knownBreakpoints, (bp) => {
713 if (bp.breakpointId === breakpointId) {
714 ObjectAssign(bp, { location });
715 return true;
716 }
717 return false;
718 });
719 if (!isExisting) {
720 ArrayPrototypePush(knownBreakpoints, { breakpointId, location });
721 }
722 }
723
724 function listBreakpoints() {
725 if (!knownBreakpoints.length) {

Callers 1

registerBreakpointFunction · 0.85

Calls 1

ObjectAssignFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…