move breakpoint event from ui to debugger

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent f69e6b2f06
commit 8cd4a356e0
  1. 4
      src/app/debugger/debugger/debugger.js
  2. 4
      src/app/debugger/debuggerUI.js

@ -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 {
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)
}) })

Loading…
Cancel
Save