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

Function listBreakpoints

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

Source from the content-addressed store, hash-verified

722 }
723
724 function listBreakpoints() {
725 if (!knownBreakpoints.length) {
726 print('No breakpoints yet');
727 return;
728 }
729
730 function formatLocation(location) {
731 if (!location) return '<unknown location>';
732 const script = knownScripts[location.scriptId];
733 const scriptUrl = script ? script.url : location.scriptUrl;
734 return `${getRelativePath(scriptUrl)}:${location.lineNumber + 1}`;
735 }
736 const breaklist = ArrayPrototypeJoin(
737 ArrayPrototypeMap(
738 knownBreakpoints,
739 (bp, idx) => `#${idx} ${formatLocation(bp.location)}`),
740 '\n');
741 print(breaklist);
742 }
743
744 function setBreakpoint(script, line, condition, silent) {
745 function registerBreakpoint({ breakpointId, actualLocation }) {

Callers 1

breakpointsFunction · 0.85

Calls 2

printFunction · 0.70
formatLocationFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…