Commit e62acd8d authored by yann300's avatar yann300

show solidity state / locals if source code available

parent 89a70efb
......@@ -54,6 +54,14 @@ function VmDebugger (_parent, _traceManager, _codeManager, _solidityProxy, _call
_parent.event.register('traceUnloaded', this, function () {
self.view.style.display = 'none'
})
_parent.callTree.event.register('callTreeReady', () => {
if (_parent.callTree.reducedTrace.length) {
self.solidityLocals.basicPanel.show()
self.solidityState.basicPanel.show()
} else {
self.asmCode.basicPanel.show()
}
})
}
VmDebugger.prototype.render = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment