(session)
| 58 | } |
| 59 | |
| 60 | async function testBreakpointOnStart(session) { |
| 61 | console.log('[test]', |
| 62 | 'Verifying debugger stops on start (--inspect-brk option)'); |
| 63 | const commands = [ |
| 64 | { 'method': 'Runtime.enable' }, |
| 65 | { 'method': 'Debugger.enable' }, |
| 66 | { 'method': 'Debugger.setPauseOnExceptions', |
| 67 | 'params': { 'state': 'none' } }, |
| 68 | { 'method': 'Debugger.setAsyncCallStackDepth', |
| 69 | 'params': { 'maxDepth': 0 } }, |
| 70 | { 'method': 'Profiler.enable' }, |
| 71 | { 'method': 'Profiler.setSamplingInterval', |
| 72 | 'params': { 'interval': 100 } }, |
| 73 | { 'method': 'Debugger.setBlackboxPatterns', |
| 74 | 'params': { 'patterns': [] } }, |
| 75 | { 'method': 'Runtime.runIfWaitingForDebugger' }, |
| 76 | ]; |
| 77 | |
| 78 | await session.send({ method: 'NodeRuntime.enable' }); |
| 79 | await session.waitForNotification('NodeRuntime.waitingForDebugger'); |
| 80 | await session.send(commands); |
| 81 | await session.send({ method: 'NodeRuntime.disable' }); |
| 82 | await session.waitForBreakOnLine(0, session.scriptURL()); |
| 83 | } |
| 84 | |
| 85 | async function testBreakpoint(session) { |
| 86 | console.log('[test]', 'Setting a breakpoint and verifying it is hit'); |
no test coverage detected
searching dependent graphs…