aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ethereal/assets/qml/wallet.qml15
-rw-r--r--ethereal/ui/ui_lib.go3
2 files changed, 18 insertions, 0 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index c3ddfe4b8..2d2a9db9f 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -412,6 +412,17 @@ ApplicationWindow {
model: memModel
}
+ SplitView {
+ orientation: Qt.Vertical
+ anchors.fill: parent
+ TableView {
+ property var debuggerLog: ListModel {
+ id: debuggerLog
+ }
+ TableViewColumn{ role: "value"; title: "Debug messages" }
+ model: debuggerLog
+ }
+ }
TableView {
property var stackModel: ListModel {
id: stackModel
@@ -449,6 +460,10 @@ ApplicationWindow {
function setStack(stack) {
stackModel.append({value: stack})
}
+ function addDebugMessage(message){
+ console.log("WOOP:")
+ debuggerLog.append({value: message})
+ }
function clearStack() {
stackModel.clear()
diff --git a/ethereal/ui/ui_lib.go b/ethereal/ui/ui_lib.go
index 86855290f..b2552cdce 100644
--- a/ethereal/ui/ui_lib.go
+++ b/ethereal/ui/ui_lib.go
@@ -102,6 +102,9 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string)
asm, err := mutan.Compile(strings.NewReader(mainInput), false)
if err != nil {
fmt.Println(err)
+ for _, e := range err {
+ ui.win.Root().Call("addDebugMessage", e.Error())
+ }
}
callerScript := ethutil.Assemble(asm...)