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

Function registerBreakpoint

lib/internal/debugger/inspect_repl.js:745–753  ·  view source on GitHub ↗
({ breakpointId, actualLocation })

Source from the content-addressed store, hash-verified

743
744 function setBreakpoint(script, line, condition, silent) {
745 function registerBreakpoint({ breakpointId, actualLocation }) {
746 handleBreakpointResolved({ breakpointId, location: actualLocation });
747 if (actualLocation?.scriptId) {
748 if (!silent) return getSourceSnippet(actualLocation, 5);
749 } else {
750 print(`Warning: script '${script}' was not loaded yet.`);
751 }
752 return undefined;
753 }
754
755 // setBreakpoint(): set breakpoint at current location
756 if (script === undefined) {

Callers 1

setBreakpointFunction · 0.85

Calls 3

handleBreakpointResolvedFunction · 0.85
getSourceSnippetFunction · 0.85
printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…