diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-28 21:48:17 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-28 21:48:17 +0800 |
commit | 1eda1d25b0d27fe57287698fb883c9153ddda292 (patch) | |
tree | 17d3ab169fcb9a02b291abe4c37a8eb9bceb8c16 /ethereal/ui/debugger.go | |
parent | aaeb26852299c0c65a4e296da718e0fc29baa6f8 (diff) | |
download | dexon-1eda1d25b0d27fe57287698fb883c9153ddda292.tar dexon-1eda1d25b0d27fe57287698fb883c9153ddda292.tar.gz dexon-1eda1d25b0d27fe57287698fb883c9153ddda292.tar.bz2 dexon-1eda1d25b0d27fe57287698fb883c9153ddda292.tar.lz dexon-1eda1d25b0d27fe57287698fb883c9153ddda292.tar.xz dexon-1eda1d25b0d27fe57287698fb883c9153ddda292.tar.zst dexon-1eda1d25b0d27fe57287698fb883c9153ddda292.zip |
Hooked up the Block Explorer to the Debugger so we can instantly debug made transactions
Diffstat (limited to 'ethereal/ui/debugger.go')
-rw-r--r-- | ethereal/ui/debugger.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go index 5b1fb50a2..342e3a7d0 100644 --- a/ethereal/ui/debugger.go +++ b/ethereal/ui/debugger.go @@ -65,6 +65,12 @@ func (self *DebuggerWindow) SetCode(code string) { func (self *DebuggerWindow) SetData(data string) { self.win.Set("dataText", data) } +func (self *DebuggerWindow) SetAsm(data string) { + dis := ethchain.Disassemble(ethutil.FromHex(data)) + for _, str := range dis { + self.win.Root().Call("setAsm", str) + } +} func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, dataStr string) { if !self.Db.done { |