|
|
|
@ -20,7 +20,6 @@ function Debugger (options) { |
|
|
|
|
this.compiler = options.compiler |
|
|
|
|
|
|
|
|
|
this.debugger = new Ethdebugger({ |
|
|
|
|
// executionContext: this.executionContext,
|
|
|
|
|
web3: this.executionContext.web3, |
|
|
|
|
compilationResult: () => { |
|
|
|
|
var compilationResult = this.compiler.lastCompilationResult |
|
|
|
@ -43,11 +42,6 @@ function Debugger (options) { |
|
|
|
|
|
|
|
|
|
this.debugger.setBreakpointManager(this.breakPointManager) |
|
|
|
|
|
|
|
|
|
this.executionContext.event.register('contextChanged', this, function (context) { |
|
|
|
|
// TODO: was already broken
|
|
|
|
|
// self.switchProvider(context)
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.debugger.event.register('newTraceLoaded', this, function () { |
|
|
|
|
self.event.trigger('debuggerStatus', [true]) |
|
|
|
|
}) |
|
|
|
@ -66,8 +60,6 @@ function Debugger (options) { |
|
|
|
|
this.switchProvider(this.executionContext.getProvider()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Debugger.prototype.addProvider = function (type, obj) { |
|
|
|
|
this.web3Providers.addProvider(type, obj) |
|
|
|
|
this.event.trigger('providerAdded', [type]) |
|
|
|
@ -93,8 +85,6 @@ Debugger.prototype.switchProvider = function (type) { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Debugger.prototype.registerAndHighlightCodeItem = function (index) { |
|
|
|
|
const self = this |
|
|
|
|
// register selected code item, highlight the corresponding source location
|
|
|
|
|