Skip to content

Commit 02ea68f

Browse files
committed
info
1 parent e077cad commit 02ea68f

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed

Mist/assets/debugger/debugger.qml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,18 +223,29 @@ ApplicationWindow {
223223
}
224224
}
225225

226-
Rectangle {
227-
height: 200
228-
width: parent.width
229-
TableView {
230-
id: logTableView
231-
property var logModel: ListModel {
232-
id: logModel
226+
SplitView {
227+
Rectangle {
228+
height: 200
229+
width: parent.width * 0.66
230+
TableView {
231+
id: logTableView
232+
property var logModel: ListModel {
233+
id: logModel
234+
}
235+
height: parent.height
236+
width: parent.width
237+
TableViewColumn{ id: message ; role: "message" ; title: "log" ; width: logTableView.width - 2 }
238+
model: logModel
233239
}
234-
height: parent.height
235-
width: parent.width
236-
TableViewColumn{ id: message ; role: "message" ; title: "log" ; width: logTableView.width - 2 }
237-
model: logModel
240+
}
241+
242+
TextArea {
243+
objectName: "info"
244+
anchors {
245+
top: parent.top
246+
bottom: parent.bottom
247+
}
248+
readOnly: true
238249
}
239250
}
240251
}

Mist/debugger.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ func (d *Debugger) halting(pc int, op ethvm.OpCode, mem *ethvm.Memory, stack *et
284284
d.win.Root().Call("setStorage", storeVal{fmt.Sprintf("% x", key), fmt.Sprintf("% x", node.Str())})
285285
})
286286

287+
d.win.Root().ObjectByName("info").Set("text", fmt.Sprintf(`stack frame %v`, new(big.Int).SetBytes(mem.Get(0, 32))))
288+
287289
out:
288290
for {
289291
select {

0 commit comments

Comments
 (0)