Commit 8cd4a356 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

move breakpoint event from ui to debugger

parent f69e6b2f
...@@ -52,6 +52,10 @@ function Debugger (options) { ...@@ -52,6 +52,10 @@ function Debugger (options) {
self.event.trigger('debuggerStatus', [false]) self.event.trigger('debuggerStatus', [false])
}) })
this.event.register('breakpointStep', function (step) {
self.step_manager.jumpTo(step)
})
this.debugger.addProvider('vm', this.executionContext.vm()) this.debugger.addProvider('vm', this.executionContext.vm())
this.debugger.addProvider('injected', this.executionContext.internalWeb3()) this.debugger.addProvider('injected', this.executionContext.internalWeb3())
this.debugger.addProvider('web3', this.executionContext.internalWeb3()) this.debugger.addProvider('web3', this.executionContext.internalWeb3())
......
...@@ -80,10 +80,6 @@ class DebuggerUI { ...@@ -80,10 +80,6 @@ class DebuggerUI {
self.isActive = isActive self.isActive = isActive
}) })
this.transactionDebugger.event.register('breakpointStep', function (step) {
self.stepManager.stepManager.jumpTo(step)
})
this.transactionDebugger.event.register('newSourceLocation', function (lineColumnPos, rawLocation) { this.transactionDebugger.event.register('newSourceLocation', function (lineColumnPos, rawLocation) {
self.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation) self.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment