|
|
|
@ -169,12 +169,18 @@ EthdebuggerUI.prototype.debug = function (tx) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EthdebuggerUI.prototype.render = function () { |
|
|
|
|
this.browserView = yo`<div class="${css.innerShift}">
|
|
|
|
|
${this.txBrowser.render()} |
|
|
|
|
</div>` |
|
|
|
|
this.debuggerPanelsView = yo`<div class="${css.innerShift}"></div>` |
|
|
|
|
this.debuggerHeadPanelsView = yo`<div class="${css.innerShift}"></div>` |
|
|
|
|
this.stepManagerView = yo`<div class="${css.innerShift}"></div>` |
|
|
|
|
|
|
|
|
|
var view = yo`<div>
|
|
|
|
|
${this.browserView} |
|
|
|
|
<div class="${css.innerShift}"> |
|
|
|
|
${this.txBrowser.render()} |
|
|
|
|
${this.debuggerHeadPanelsView} |
|
|
|
|
${this.stepManagerView} |
|
|
|
|
</div> |
|
|
|
|
<div class="${css.statusMessage}" >${this.statusMessage}</div> |
|
|
|
|
${this.debuggerPanelsView} |
|
|
|
|
</div>` |
|
|
|
|
if (!this.view) { |
|
|
|
|
this.view = view |
|
|
|
@ -187,6 +193,7 @@ EthdebuggerUI.prototype.unLoad = function () { |
|
|
|
|
// this.debugger.codeManager.clear()
|
|
|
|
|
// this.debugger.stepManager.reset()
|
|
|
|
|
this.debugger.unLoad() |
|
|
|
|
yo.update(this.debuggerHeadPanelsView, yo`<div></div>`) |
|
|
|
|
yo.update(this.debuggerPanelsView, yo`<div></div>`) |
|
|
|
|
yo.update(this.stepManagerView, yo`<div></div>`) |
|
|
|
|
if (this.vmDebugger) this.vmDebugger.remove() |
|
|
|
@ -233,8 +240,9 @@ EthdebuggerUI.prototype.startDebugging = function (blockNumber, txIndex, tx) { |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.vmDebugger = new VmDebugger(this, this.debugger.traceManager, this.debugger.codeManager, this.debugger.solidityProxy, this.debugger.callTree) |
|
|
|
|
this.browserView.appendChild(this.stepManager.render()) |
|
|
|
|
this.view.appendChild(this.vmDebugger.render()) |
|
|
|
|
yo.update(this.debuggerHeadPanelsView, this.vmDebugger.renderHead()) |
|
|
|
|
yo.update(this.debuggerPanelsView, this.vmDebugger.render()) |
|
|
|
|
yo.update(this.stepManagerView, this.stepManager.render()) |
|
|
|
|
|
|
|
|
|
this.debugger.debug(tx) |
|
|
|
|
|
|
|
|
|