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

Function restoreBreakpoints

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

Source from the content-addressed store, hash-verified

871 }
872
873 function restoreBreakpoints() {
874 const lastBreakpoints = ArrayPrototypeSplice(knownBreakpoints, 0);
875 const newBreakpoints = ArrayPrototypeMap(
876 ArrayPrototypeFilter(lastBreakpoints,
877 ({ location }) => !!location.scriptUrl),
878 ({ location }) => setBreakpoint(location.scriptUrl,
879 location.lineNumber + 1));
880 if (!newBreakpoints.length) return PromiseResolve();
881 return PromisePrototypeThen(
882 SafePromiseAllReturnVoid(newBreakpoints),
883 () => {
884 print(`${newBreakpoints.length} breakpoints restored.`);
885 });
886 }
887
888 function setPauseOnExceptions(state) {
889 return PromisePrototypeThen(

Callers 1

initAfterStartFunction · 0.85

Calls 2

setBreakpointFunction · 0.70
printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…