|
|
@ -102,13 +102,13 @@ class VmDebuggerLogic { |
|
|
|
|
|
|
|
|
|
|
|
var storageViewer = new StorageViewer({ stepIndex: this.stepManager.currentStepIndex, tx: this.tx, address: address }, this.storageResolver, this._traceManager) |
|
|
|
var storageViewer = new StorageViewer({ stepIndex: this.stepManager.currentStepIndex, tx: this.tx, address: address }, this.storageResolver, this._traceManager) |
|
|
|
|
|
|
|
|
|
|
|
storageViewer.storageRange((error, storage) => { |
|
|
|
storageViewer.storageRange().then((storage) => { |
|
|
|
if (error) { |
|
|
|
if (this.stepManager.currentStepIndex === index) { |
|
|
|
this.event.trigger('traceManagerStorageUpdate', [{}]) |
|
|
|
|
|
|
|
} else if (this.stepManager.currentStepIndex === index) { |
|
|
|
|
|
|
|
var header = storageViewer.isComplete(address) ? '[Completely Loaded]' : '[Partially Loaded]' |
|
|
|
var header = storageViewer.isComplete(address) ? '[Completely Loaded]' : '[Partially Loaded]' |
|
|
|
this.event.trigger('traceManagerStorageUpdate', [storage, header]) |
|
|
|
this.event.trigger('traceManagerStorageUpdate', [storage, header]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}).catch((_error) => { |
|
|
|
|
|
|
|
this.event.trigger('traceManagerStorageUpdate', [{}]) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
|
} |
|
|
|
} |
|
|
@ -185,11 +185,9 @@ class VmDebuggerLogic { |
|
|
|
for (var k in this.addresses) { |
|
|
|
for (var k in this.addresses) { |
|
|
|
var address = this.addresses[k] |
|
|
|
var address = this.addresses[k] |
|
|
|
var storageViewer = new StorageViewer({ stepIndex: this.stepManager.currentStepIndex, tx: this.tx, address: address }, this.storageResolver, this._traceManager) |
|
|
|
var storageViewer = new StorageViewer({ stepIndex: this.stepManager.currentStepIndex, tx: this.tx, address: address }, this.storageResolver, this._traceManager) |
|
|
|
storageViewer.storageRange((error, result) => { |
|
|
|
storageViewer.storageRange().then((result) => { |
|
|
|
if (!error) { |
|
|
|
storageJSON[address] = result |
|
|
|
storageJSON[address] = result |
|
|
|
this.event.trigger('traceStorageUpdate', [storageJSON]) |
|
|
|
this.event.trigger('traceStorageUpdate', [storageJSON]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|