MCPcopy Create free account
hub / github.com/GNOME/gjs / findBreakpointOffsets

Function findBreakpointOffsets

modules/script/_bootstrap/debugger.js:738–750  ·  view source on GitHub ↗
(line, currentScript)

Source from the content-addressed store, hash-verified

736 · line_num: line_num to continue until`;
737
738function findBreakpointOffsets(line, currentScript) {
739 const offsets = currentScript.getLineOffsets(line);
740 if (offsets.length !== 0)
741 return [{script: currentScript, offsets}];
742
743 const scripts = dbg.findScripts({line, url: currentScript.url});
744 if (scripts.length === 0)
745 return [];
746
747 return scripts
748 .map(script => ({script, offsets: script.getLineOffsets(line)}))
749 .filter(({offsets: o}) => o.length !== 0);
750}
751
752class BreakpointHandler {
753 constructor(num, script, offset) {

Callers 1

breakpointCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected