From 8cd4a356e07d906b80e42b62d95587751da04e88 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 4 Oct 2018 16:30:35 -0400 Subject: [PATCH] move breakpoint event from ui to debugger --- src/app/debugger/debugger/debugger.js | 4 ++++ src/app/debugger/debuggerUI.js | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) 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) })