Commit c4267d43 authored by Iuri Matias's avatar Iuri Matias

add more events

parent 9b557f0c
...@@ -83,19 +83,21 @@ class CmdLine { ...@@ -83,19 +83,21 @@ class CmdLine {
this.filename = filename this.filename = filename
this.debugger.debug(null, txNumber, null, () => { this.debugger.debug(null, txNumber, null, () => {
self.debugger.event.register('newSourceLocation', function (lineColumnPos, _rawLocation) { self.debugger.event.register('newSourceLocation', function (lineColumnPos, rawLocation) {
self.lineColumnPos = lineColumnPos self.lineColumnPos = lineColumnPos
self.events.emit("source") self.events.emit("source", [lineColumnPos, rawLocation])
}); });
self.debugger.vmDebuggerLogic.event.register('solidityState', (data) => { self.debugger.vmDebuggerLogic.event.register('solidityState', (data) => {
self.solidityState = data self.solidityState = data
self.events.emit("globals", data)
}); });
// TODO: this doesnt work too well, it should request the data instead... // TODO: this doesnt work too well, it should request the data instead...
self.debugger.vmDebuggerLogic.event.register('solidityLocals', (data) => { self.debugger.vmDebuggerLogic.event.register('solidityLocals', (data) => {
if (JSON.stringify(data) === '{}') return if (JSON.stringify(data) === '{}') return
self.solidityLocals = data self.solidityLocals = data
self.events.emit("locals", data)
}); });
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment