diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-20 04:42:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-20 04:42:55 +0800 |
commit | 8585e59718e6b75a38833801f1725730c1b9fb01 (patch) | |
tree | 905a5751ae8aa5ec253ddaec5208600fc7aac586 /mist/debugger.go | |
parent | ae1de6593c31fbaa4429588cea2702dd5b01a722 (diff) | |
download | go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.gz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.bz2 go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.lz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.xz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.zst go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.zip |
Re-writing ethereum.js. Added future/promises support.
Diffstat (limited to 'mist/debugger.go')
-rw-r--r-- | mist/debugger.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mist/debugger.go b/mist/debugger.go index a9086921d..8f3fc6751 100644 --- a/mist/debugger.go +++ b/mist/debugger.go @@ -94,9 +94,7 @@ func (self *DebuggerWindow) ClearLog() { } func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, dataStr string) { - if !self.Db.done { - self.Db.Q <- true - } + self.Stop() defer func() { if r := recover(); r != nil { @@ -186,6 +184,12 @@ func (self *DebuggerWindow) Continue() { self.Next() } +func (self *DebuggerWindow) Stop() { + if !self.Db.done { + self.Db.Q <- true + } +} + func (self *DebuggerWindow) ExecCommand(command string) { if len(command) > 0 { cmd := strings.Split(command, " ") |