diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-19 07:42:26 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-19 07:42:26 +0800 |
commit | 02ea68f1f3b56c669b1a178c082d55ff27fd5826 (patch) | |
tree | d52b9953c2a7d610eba4f422fad791e2604521e3 | |
parent | e077cad3337b11300ddd56561f4ff7c5d09b015a (diff) | |
download | go-tangerine-02ea68f1f3b56c669b1a178c082d55ff27fd5826.tar go-tangerine-02ea68f1f3b56c669b1a178c082d55ff27fd5826.tar.gz go-tangerine-02ea68f1f3b56c669b1a178c082d55ff27fd5826.tar.bz2 go-tangerine-02ea68f1f3b56c669b1a178c082d55ff27fd5826.tar.lz go-tangerine-02ea68f1f3b56c669b1a178c082d55ff27fd5826.tar.xz go-tangerine-02ea68f1f3b56c669b1a178c082d55ff27fd5826.tar.zst go-tangerine-02ea68f1f3b56c669b1a178c082d55ff27fd5826.zip |
info
-rw-r--r-- | Mist/assets/debugger/debugger.qml | 33 | ||||
-rw-r--r-- | Mist/debugger.go | 2 |
2 files changed, 24 insertions, 11 deletions
diff --git a/Mist/assets/debugger/debugger.qml b/Mist/assets/debugger/debugger.qml index 34fe01253..902e09d2c 100644 --- a/Mist/assets/debugger/debugger.qml +++ b/Mist/assets/debugger/debugger.qml @@ -223,18 +223,29 @@ ApplicationWindow { } } - Rectangle { - height: 200 - width: parent.width - TableView { - id: logTableView - property var logModel: ListModel { - id: logModel + SplitView { + Rectangle { + height: 200 + width: parent.width * 0.66 + TableView { + id: logTableView + property var logModel: ListModel { + id: logModel + } + height: parent.height + width: parent.width + TableViewColumn{ id: message ; role: "message" ; title: "log" ; width: logTableView.width - 2 } + model: logModel } - height: parent.height - width: parent.width - TableViewColumn{ id: message ; role: "message" ; title: "log" ; width: logTableView.width - 2 } - model: logModel + } + + TextArea { + objectName: "info" + anchors { + top: parent.top + bottom: parent.bottom + } + readOnly: true } } } diff --git a/Mist/debugger.go b/Mist/debugger.go index 7bc544377..2b9081419 100644 --- a/Mist/debugger.go +++ b/Mist/debugger.go @@ -284,6 +284,8 @@ func (d *Debugger) halting(pc int, op ethvm.OpCode, mem *ethvm.Memory, stack *et d.win.Root().Call("setStorage", storeVal{fmt.Sprintf("% x", key), fmt.Sprintf("% x", node.Str())}) }) + d.win.Root().ObjectByName("info").Set("text", fmt.Sprintf(`stack frame %v`, new(big.Int).SetBytes(mem.Get(0, 32)))) + out: for { select { |