add more events

pull/7/head
Iuri Matias 6 years ago
parent 9b557f0c7b
commit c4267d4394
  1. 6
      remix-debug/src/cmdline/index.js

@ -83,19 +83,21 @@ class CmdLine {
this.filename = filename
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.events.emit("source")
self.events.emit("source", [lineColumnPos, rawLocation])
});
self.debugger.vmDebuggerLogic.event.register('solidityState', (data) => {
self.solidityState = data
self.events.emit("globals", data)
});
// TODO: this doesnt work too well, it should request the data instead...
self.debugger.vmDebuggerLogic.event.register('solidityLocals', (data) => {
if (JSON.stringify(data) === '{}') return
self.solidityLocals = data
self.events.emit("locals", data)
});
})

Loading…
Cancel
Save