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
9e38ca55
Commit
9e38ca55
authored
Jul 04, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Visual updates
parent
de183e80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
debugger.qml
ethereal/assets/debugger/debugger.qml
+1
-11
debugger.go
ethereal/debugger.go
+8
-2
No files found.
ethereal/assets/debugger/debugger.qml
View file @
9e38ca55
...
@@ -231,7 +231,7 @@ ApplicationWindow {
...
@@ -231,7 +231,7 @@ ApplicationWindow {
}
}
height
:
parent
.
height
height
:
parent
.
height
width
:
parent
.
width
width
:
parent
.
width
TableViewColumn
{
id
:
message
;
role
:
"message"
;
title
:
"log"
;
width
:
logTableView
.
width
-
1
}
TableViewColumn
{
id
:
message
;
role
:
"message"
;
title
:
"log"
;
width
:
logTableView
.
width
-
2
}
model
:
logModel
model
:
logModel
}
}
}
}
...
@@ -258,16 +258,6 @@ ApplicationWindow {
...
@@ -258,16 +258,6 @@ ApplicationWindow {
exec
()
exec
()
}
}
}
}
Button
{
anchors
{
left
:
dbgCommand
.
right
}
text
:
"Exec"
onClicked
:
{
exec
()
}
}
}
}
toolBar
:
ToolBar
{
toolBar
:
ToolBar
{
...
...
ethereal/debugger.go
View file @
9e38ca55
...
@@ -73,6 +73,10 @@ func (self *DebuggerWindow) Compile(code string) {
...
@@ -73,6 +73,10 @@ func (self *DebuggerWindow) Compile(code string) {
}
}
}
}
func
(
self
*
DebuggerWindow
)
ClearLog
()
{
self
.
win
.
Root
()
.
Call
(
"clearLog"
)
}
func
(
self
*
DebuggerWindow
)
Debug
(
valueStr
,
gasStr
,
gasPriceStr
,
scriptStr
,
dataStr
string
)
{
func
(
self
*
DebuggerWindow
)
Debug
(
valueStr
,
gasStr
,
gasPriceStr
,
scriptStr
,
dataStr
string
)
{
if
!
self
.
Db
.
done
{
if
!
self
.
Db
.
done
{
self
.
Db
.
Q
<-
true
self
.
Db
.
Q
<-
true
...
@@ -188,8 +192,8 @@ func (self *DebuggerWindow) ExecCommand(command string) {
...
@@ -188,8 +192,8 @@ func (self *DebuggerWindow) ExecCommand(command string) {
switch
cmd
[
0
]
{
switch
cmd
[
0
]
{
case
"help"
:
case
"help"
:
self
.
Logln
(
"Debugger commands:"
)
self
.
Logln
(
"Debugger commands:"
)
self
.
Logln
(
"break, bp Set breakpoint on instruction"
)
self
.
Logln
(
"break, bp
Set breakpoint on instruction"
)
self
.
Logln
(
"clear [break, bp] Clears previous set sub-command(s)"
)
self
.
Logln
(
"clear [
log,
break, bp] Clears previous set sub-command(s)"
)
case
"break"
,
"bp"
:
case
"break"
,
"bp"
:
if
len
(
cmd
)
>
1
{
if
len
(
cmd
)
>
1
{
lineNo
,
err
:=
strconv
.
Atoi
(
cmd
[
1
])
lineNo
,
err
:=
strconv
.
Atoi
(
cmd
[
1
])
...
@@ -211,6 +215,8 @@ func (self *DebuggerWindow) ExecCommand(command string) {
...
@@ -211,6 +215,8 @@ func (self *DebuggerWindow) ExecCommand(command string) {
self
.
vm
.
BreakPoints
=
nil
self
.
vm
.
BreakPoints
=
nil
self
.
Logln
(
"Breakpoints cleared"
)
self
.
Logln
(
"Breakpoints cleared"
)
case
"log"
:
self
.
ClearLog
()
default
:
default
:
self
.
Logf
(
"clear '%s' is not valid"
,
cmd
[
1
])
self
.
Logf
(
"clear '%s' is not valid"
,
cmd
[
1
])
}
}
...
...
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