This commit is contained in:
obscuren 2014-09-19 01:42:26 +02:00
parent e077cad333
commit 02ea68f1f3
2 changed files with 24 additions and 11 deletions

View File

@ -223,9 +223,10 @@ ApplicationWindow {
} }
} }
SplitView {
Rectangle { Rectangle {
height: 200 height: 200
width: parent.width width: parent.width * 0.66
TableView { TableView {
id: logTableView id: logTableView
property var logModel: ListModel { property var logModel: ListModel {
@ -237,6 +238,16 @@ ApplicationWindow {
model: logModel model: logModel
} }
} }
TextArea {
objectName: "info"
anchors {
top: parent.top
bottom: parent.bottom
}
readOnly: true
}
}
} }
} }
} }

View File

@ -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().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: out:
for { for {
select { select {