({ breakpointId, actualLocation })
| 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) { |
no test coverage detected
searching dependent graphs…