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