|
|
@ -280,14 +280,12 @@ function testDebugging (debugManager) { |
|
|
|
breakPointManager.add({fileName: 'test.sol', row: 39}) |
|
|
|
breakPointManager.add({fileName: 'test.sol', row: 39}) |
|
|
|
|
|
|
|
|
|
|
|
breakPointManager.event.register('breakpointHit', function (sourceLocation, step) { |
|
|
|
breakPointManager.event.register('breakpointHit', function (sourceLocation, step) { |
|
|
|
console.log('breakpointHit') |
|
|
|
|
|
|
|
t.equal(JSON.stringify(sourceLocation), JSON.stringify({ start: 1153, length: 6, file: 0, jump: '-' })) |
|
|
|
t.equal(JSON.stringify(sourceLocation), JSON.stringify({ start: 1153, length: 6, file: 0, jump: '-' })) |
|
|
|
t.equal(step, 212) |
|
|
|
t.equal(step, 212) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
breakPointManager.event.register('noBreakpointHit', function () { |
|
|
|
breakPointManager.event.register('noBreakpointHit', function () { |
|
|
|
t.end('noBreakpointHit') |
|
|
|
t.end('noBreakpointHit') |
|
|
|
console.log('noBreakpointHit') |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
breakPointManager.jumpNextBreakpoint(0, true) |
|
|
|
breakPointManager.jumpNextBreakpoint(0, true) |
|
|
|
}) |
|
|
|
}) |
|
|
|