From 0f530cf76176c2ab9fbcb5a3e3e2f2afa0993dad Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 22 Aug 2018 09:52:10 +0200 Subject: [PATCH] remove debug artefact --- remix-debug/src/Ethdebugger.js | 9 ++------- remix-lib/src/trace/traceManager.js | 4 ---- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/remix-debug/src/Ethdebugger.js b/remix-debug/src/Ethdebugger.js index 0ebe3081cc..e3af9952d5 100644 --- a/remix-debug/src/Ethdebugger.js +++ b/remix-debug/src/Ethdebugger.js @@ -36,8 +36,8 @@ function Ethdebugger (opts) { this.opts = opts || {} if (!this.opts.compilationResult) this.opts.compilationResult = () => { return null } - this.executionContext = opts.executionContext || executionContext; - this.web3 = opts.web3 || this.executionContext.web3; + this.executionContext = opts.executionContext || executionContext + this.web3 = opts.web3 || this.executionContext.web3 this.event = new EventManager() @@ -56,7 +56,6 @@ function Ethdebugger (opts) { } Ethdebugger.prototype.setManagers = function () { - console.log("remix-debug: setManagers"); this.traceManager = new TraceManager({web3: this.web3}) this.codeManager = new CodeManager(this.traceManager) this.solidityProxy = new SolidityProxy(this.traceManager, this.codeManager) @@ -200,7 +199,6 @@ Ethdebugger.prototype.switchProvider = function (type) { } Ethdebugger.prototype.debug = function (tx) { - debugger; this.setCompilationResult(this.opts.compilationResult()) if (tx instanceof Object) { this.txBrowser.load(tx.hash) @@ -226,10 +224,7 @@ Ethdebugger.prototype.debug = function (tx) { console.log('loading trace...') this.tx = tx var self = this - debugger; this.traceManager.resolveTrace(tx, function (error, result) { - console.log('trace loaded ' + result) - console.dir(arguments); if (result) { self.event.trigger('newTraceLoaded', [self.traceManager.trace]) if (self.breakpointManager && self.breakpointManager.hasBreakpoint()) { diff --git a/remix-lib/src/trace/traceManager.js b/remix-lib/src/trace/traceManager.js index e625b2f697..98785c54e4 100644 --- a/remix-lib/src/trace/traceManager.js +++ b/remix-lib/src/trace/traceManager.js @@ -20,8 +20,6 @@ function TraceManager (options) { // init section TraceManager.prototype.resolveTrace = function (tx, callback) { - console.dir("resolveTrace: "); - console.dir(arguments); this.tx = tx this.init() if (!this.web3) callback('web3 not loaded', false) @@ -70,8 +68,6 @@ TraceManager.prototype.isLoaded = function () { } TraceManager.prototype.getLength = function (callback) { - console.dir(this.trace) - console.trace('getLength') if (!this.trace) { callback('no trace available', null) } else {