|
|
@ -1,12 +1,17 @@ |
|
|
|
'use strict' |
|
|
|
'use strict' |
|
|
|
var tape = require('tape') |
|
|
|
var tape = require('tape') |
|
|
|
var remixLib = require('remix-lib') |
|
|
|
var remixLib = require('remix-lib') |
|
|
|
var remixCore = require('remix-core') |
|
|
|
|
|
|
|
var compilerInput = remixLib.helpers.compiler.compilerInput |
|
|
|
var compilerInput = remixLib.helpers.compiler.compilerInput |
|
|
|
var vmCall = require('./vmCall') |
|
|
|
var vmCall = require('./vmCall') |
|
|
|
var Debugger = require('../src/Ethdebugger') |
|
|
|
var Debugger = require('../src/Ethdebugger') |
|
|
|
var compiler = require('solc') |
|
|
|
var compiler = require('solc') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require('./traceManager.js') |
|
|
|
|
|
|
|
require('./codeManager.js') |
|
|
|
|
|
|
|
require('./disassembler.js') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var BreakpointManager = require('../src/code/breakpointManager') |
|
|
|
|
|
|
|
|
|
|
|
tape('debug contract', function (t) { |
|
|
|
tape('debug contract', function (t) { |
|
|
|
t.plan(12) |
|
|
|
t.plan(12) |
|
|
|
var privateKey = new Buffer('dae9801649ba2d95a21e688b56f77905e5667c44ce868ec83f82e838712a2c7a', 'hex') |
|
|
|
var privateKey = new Buffer('dae9801649ba2d95a21e688b56f77905e5667c44ce868ec83f82e838712a2c7a', 'hex') |
|
|
@ -95,7 +100,7 @@ function testDebugging (t, debugManager) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
var sourceMappingDecoder = new remixLib.SourceMappingDecoder() |
|
|
|
var sourceMappingDecoder = new remixLib.SourceMappingDecoder() |
|
|
|
var breakPointManager = new remixCore.code.BreakpointManager(debugManager, (rawLocation) => { |
|
|
|
var breakPointManager = new BreakpointManager(debugManager, (rawLocation) => { |
|
|
|
return sourceMappingDecoder.convertOffsetToLineColumn(rawLocation, sourceMappingDecoder.getLinebreakPositions(ballot)) |
|
|
|
return sourceMappingDecoder.convertOffsetToLineColumn(rawLocation, sourceMappingDecoder.getLinebreakPositions(ballot)) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|