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

Function formatLocation

lib/internal/debugger/inspect_repl.js:730–735  ·  view source on GitHub ↗
(location)

Source from the content-addressed store, hash-verified

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,

Callers 1

listBreakpointsFunction · 0.70

Calls 1

getRelativePathFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…