diff --git a/src/app/debugger/debugger/debugger.js b/src/app/debugger/debugger/debugger.js index 3a40a4bad8..b96b094955 100644 --- a/src/app/debugger/debugger/debugger.js +++ b/src/app/debugger/debugger/debugger.js @@ -81,6 +81,10 @@ Debugger.prototype.debug = function (blockNumber, txNumber, tx, loadingCb) { const self = this let web3 = this.executionContext.web3() + if (this.debugger.traceManager.isLoading) { + return + } + if (tx) { if (!tx.to) { tx.to = traceHelper.contractCreationToken('0') diff --git a/src/app/debugger/debuggerUI.js b/src/app/debugger/debuggerUI.js index 2314d2e511..5b21b8c6e7 100644 --- a/src/app/debugger/debuggerUI.js +++ b/src/app/debugger/debuggerUI.js @@ -113,10 +113,6 @@ class DebuggerUI { startDebugging (blockNumber, txNumber, tx) { const self = this - if (this.debugger.traceManager.isLoading) { - return - } - this.transactionDebugger.debug(blockNumber, txNumber, tx, () => { self.stepManager = new StepManagerUI(this.transactionDebugger.step_manager) self.vmDebugger = new VmDebugger(this.transactionDebugger.vmDebuggerLogic)