From 17721ffde32c4968c45a5708941ed840059ee2ea Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 1 Aug 2018 08:29:43 -0400 Subject: [PATCH] reinit vmdebugger; tolerate view not existing --- .../debugger/remix-debugger/src/ui/Ethdebugger.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app/debugger/remix-debugger/src/ui/Ethdebugger.js b/src/app/debugger/remix-debugger/src/ui/Ethdebugger.js index b506863239..6a0ee8a152 100644 --- a/src/app/debugger/remix-debugger/src/ui/Ethdebugger.js +++ b/src/app/debugger/remix-debugger/src/ui/Ethdebugger.js @@ -79,6 +79,18 @@ function Ethdebugger (opts) { }) } +Ethdebugger.prototype.setManagers = function () { + this.traceManager = new TraceManager({web3: this.web3}) + this.codeManager = new CodeManager(this.traceManager) + this.solidityProxy = new SolidityProxy(this.traceManager, this.codeManager) + this.storageResolver = null + var callTree = new InternalCallTree(this.event, this.traceManager, this.solidityProxy, this.codeManager, { includeLocalVariables: true }) + this.callTree = callTree // TODO: currently used by browser solidity, we should improve the API + this.vmDebugger = new VmDebugger(this, this.traceManager, this.codeManager, this.solidityProxy, callTree) + + this.callTree = new InternalCallTree(this.event, this.traceManager, this.solidityProxy, this.codeManager, { includeLocalVariables: true }) +} + Ethdebugger.prototype.setBreakpointManager = function (breakpointManager) { this.breakpointManager = breakpointManager }