Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
91c75c93
Commit
91c75c93
authored
Apr 14, 2014
by
Maran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding log messages to debug panel
parent
28a48f1d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
wallet.qml
ethereal/assets/qml/wallet.qml
+15
-0
ui_lib.go
ethereal/ui/ui_lib.go
+3
-0
No files found.
ethereal/assets/qml/wallet.qml
View file @
91c75c93
...
...
@@ -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
()
...
...
ethereal/ui/ui_lib.go
View file @
91c75c93
...
...
@@ -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
...
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment