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