diff --git a/src/app/debugger/debugger/debugger.js b/src/app/debugger/debugger/debugger.js index f0b6b3086e..ee7d146394 100644 --- a/src/app/debugger/debugger/debugger.js +++ b/src/app/debugger/debugger/debugger.js @@ -52,6 +52,10 @@ function Debugger (options) { 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('injected', this.executionContext.internalWeb3()) this.debugger.addProvider('web3', this.executionContext.internalWeb3()) diff --git a/src/app/debugger/debuggerUI.js b/src/app/debugger/debuggerUI.js index 5b2004d4d0..bbd13a4e6b 100644 --- a/src/app/debugger/debuggerUI.js +++ b/src/app/debugger/debuggerUI.js @@ -80,10 +80,6 @@ class DebuggerUI { self.isActive = isActive }) - this.transactionDebugger.event.register('breakpointStep', function (step) { - self.stepManager.stepManager.jumpTo(step) - }) - this.transactionDebugger.event.register('newSourceLocation', function (lineColumnPos, rawLocation) { self.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation) })