trigger new eventr sourceLocationChanged

pull/7/head
yann300 8 years ago
parent cccfc472bf
commit bf6cae54cc
  1. 8
      src/ui/Ethdebugger.js

@ -52,6 +52,14 @@ function Ethdebugger () {
self.stepChanged(stepIndex) self.stepChanged(stepIndex)
}) })
this.vmDebugger = new VmDebugger(this, this.traceManager, this.codeManager, this.solidityProxy, callTree) this.vmDebugger = new VmDebugger(this, this.traceManager, this.codeManager, this.solidityProxy, callTree)
this.codeManager.event.register('changed', this, (code, address, instIndex) => {
this.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, this.currentStepIndex, this.solidityProxy.contracts, (error, sourceLocation) => {
if (!error) {
this.event.trigger('sourceLocationChanged', [sourceLocation])
}
})
})
} }
Ethdebugger.prototype.web3 = function () { Ethdebugger.prototype.web3 = function () {

Loading…
Cancel
Save