|
|
|
@ -49,13 +49,12 @@ function EthdebuggerUI (opts) { |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
executionContext.event.register('contextChanged', this, function () { |
|
|
|
|
console.dir("== contextChanged!!"); |
|
|
|
|
self.updateWeb3Reference() |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
setTimeout(function () { |
|
|
|
|
self.updateWeb3Reference() |
|
|
|
|
}, 10000); |
|
|
|
|
}, 10000) |
|
|
|
|
|
|
|
|
|
this.txBrowser = new TxBrowser(this) |
|
|
|
|
this.txBrowser.event.register('newTxLoading', this, function () { |
|
|
|
@ -124,16 +123,13 @@ EthdebuggerUI.prototype.addProvider = function (type, obj) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EthdebuggerUI.prototype.updateWeb3Reference = function () { |
|
|
|
|
debugger; |
|
|
|
|
if (!this.txBrowser) return |
|
|
|
|
this.txBrowser.web3 = this.debugger.web3 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EthdebuggerUI.prototype.switchProvider = function (type) { |
|
|
|
|
debugger; |
|
|
|
|
var self = this |
|
|
|
|
this.web3Providers.get(type, function (error, obj) { |
|
|
|
|
debugger; |
|
|
|
|
if (error) { |
|
|
|
|
console.log('provider ' + type + ' not defined') |
|
|
|
|
} else { |
|
|
|
@ -141,7 +137,6 @@ EthdebuggerUI.prototype.switchProvider = function (type) { |
|
|
|
|
// self.setManagers()
|
|
|
|
|
self.updateWeb3Reference() |
|
|
|
|
executionContext.detectNetwork((error, network) => { |
|
|
|
|
debugger; |
|
|
|
|
if (error || !network) { |
|
|
|
|
self.web3Debug = obj |
|
|
|
|
self.web3 = obj |
|
|
|
@ -202,7 +197,7 @@ EthdebuggerUI.prototype.stepChanged = function (stepIndex) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EthdebuggerUI.prototype.startDebugging = function (blockNumber, txIndex, tx) { |
|
|
|
|
const self = this; |
|
|
|
|
const self = this |
|
|
|
|
console.dir('startDebugging') |
|
|
|
|
console.dir(arguments) |
|
|
|
|
if (this.debugger.traceManager.isLoading) { |
|
|
|
|