(session)
| 11 | const script = fixtures.path('throws_error.js'); |
| 12 | |
| 13 | async function testBreakpointOnStart(session) { |
| 14 | console.log('[test]', |
| 15 | 'Verifying debugger stops on start (--inspect-brk option)'); |
| 16 | const commands = [ |
| 17 | { 'method': 'Runtime.enable' }, |
| 18 | { 'method': 'Debugger.enable' }, |
| 19 | { 'method': 'Debugger.setPauseOnExceptions', |
| 20 | 'params': { 'state': 'none' } }, |
| 21 | { 'method': 'Debugger.setAsyncCallStackDepth', |
| 22 | 'params': { 'maxDepth': 0 } }, |
| 23 | { 'method': 'Profiler.enable' }, |
| 24 | { 'method': 'Profiler.setSamplingInterval', |
| 25 | 'params': { 'interval': 100 } }, |
| 26 | { 'method': 'Debugger.setBlackboxPatterns', |
| 27 | 'params': { 'patterns': [] } }, |
| 28 | { 'method': 'Runtime.runIfWaitingForDebugger' }, |
| 29 | ]; |
| 30 | |
| 31 | await session.send({ method: 'NodeRuntime.enable' }); |
| 32 | await session.waitForNotification('NodeRuntime.waitingForDebugger'); |
| 33 | await session.send(commands); |
| 34 | await session.send({ method: 'NodeRuntime.disable' }); |
| 35 | await session.waitForBreakOnLine(21, pathToFileURL(script).toString()); |
| 36 | } |
| 37 | |
| 38 | |
| 39 | async function runTest() { |
no test coverage detected
searching dependent graphs…