aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/ui_lib.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-27 16:42:37 +0800
committerobscuren <geffobscura@gmail.com>2014-05-27 16:42:37 +0800
commit4fd267a7785ea06014f38f9be4e8e380c7f1cb1e (patch)
tree693d2ac06153636077c53d783e77e82e8bb37329 /ethereal/ui/ui_lib.go
parentd694e00a3340a36c39872950bb7a2404e9686c18 (diff)
downloaddexon-4fd267a7785ea06014f38f9be4e8e380c7f1cb1e.tar
dexon-4fd267a7785ea06014f38f9be4e8e380c7f1cb1e.tar.gz
dexon-4fd267a7785ea06014f38f9be4e8e380c7f1cb1e.tar.bz2
dexon-4fd267a7785ea06014f38f9be4e8e380c7f1cb1e.tar.lz
dexon-4fd267a7785ea06014f38f9be4e8e380c7f1cb1e.tar.xz
dexon-4fd267a7785ea06014f38f9be4e8e380c7f1cb1e.tar.zst
dexon-4fd267a7785ea06014f38f9be4e8e380c7f1cb1e.zip
Sep debugger from main
Diffstat (limited to 'ethereal/ui/ui_lib.go')
-rw-r--r--ethereal/ui/ui_lib.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/ethereal/ui/ui_lib.go b/ethereal/ui/ui_lib.go
index 51fa26a88..c3f9f52e6 100644
--- a/ethereal/ui/ui_lib.go
+++ b/ethereal/ui/ui_lib.go
@@ -90,6 +90,12 @@ func (ui *UiLib) AssetPath(p string) string {
return path.Join(ui.assetPath, p)
}
+func (self *UiLib) StartDebugger() {
+ dbWindow := NewDebuggerWindow(self)
+
+ dbWindow.Show()
+}
+
func DefaultAssetPath() string {
var base string
// If the current working directory is the go-ethereum dir
@@ -163,9 +169,7 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string)
}
func (ui *UiLib) Next() {
- if !ui.Db.done {
- ui.Db.Next()
- }
+ ui.Db.Next()
}
type Debugger struct {
@@ -200,5 +204,7 @@ out:
}
func (d *Debugger) Next() {
- d.N <- true
+ if !d.done {
+ d.N <- true
+ }
}