diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-04 21:31:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-04 21:31:13 +0800 |
commit | 9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c (patch) | |
tree | d88bfa53ee9d3572437aa276a3b5e8014e38632d /ethereal/debugger.go | |
parent | de183e80db6ce380c8030f00c24479ed0290878b (diff) | |
download | go-tangerine-9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c.tar go-tangerine-9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c.tar.gz go-tangerine-9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c.tar.bz2 go-tangerine-9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c.tar.lz go-tangerine-9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c.tar.xz go-tangerine-9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c.tar.zst go-tangerine-9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c.zip |
Visual updates
Diffstat (limited to 'ethereal/debugger.go')
-rw-r--r-- | ethereal/debugger.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ethereal/debugger.go b/ethereal/debugger.go index f649857b2..89e0f36eb 100644 --- a/ethereal/debugger.go +++ b/ethereal/debugger.go @@ -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) { if !self.Db.done { self.Db.Q <- true @@ -188,8 +192,8 @@ func (self *DebuggerWindow) ExecCommand(command string) { switch cmd[0] { case "help": self.Logln("Debugger commands:") - self.Logln("break, bp Set breakpoint on instruction") - self.Logln("clear [break, bp] Clears previous set sub-command(s)") + self.Logln("break, bp Set breakpoint on instruction") + self.Logln("clear [log, break, bp] Clears previous set sub-command(s)") case "break", "bp": if len(cmd) > 1 { lineNo, err := strconv.Atoi(cmd[1]) @@ -211,6 +215,8 @@ func (self *DebuggerWindow) ExecCommand(command string) { self.vm.BreakPoints = nil self.Logln("Breakpoints cleared") + case "log": + self.ClearLog() default: self.Logf("clear '%s' is not valid", cmd[1]) } |