fix API use

pull/1/head
yann300 7 years ago
parent 8f16a447a6
commit 25bb781422
  1. 2
      src/app/debugger/remix-debugger/src/ui/Ethdebugger.js
  2. 4
      src/app/debugger/remix-debugger/src/ui/StepManager.js

@ -173,7 +173,7 @@ Ethdebugger.prototype.startDebugging = function (blockNumber, txIndex, tx) {
yo.update(self.view, self.render())
self.event.trigger('newTraceLoaded', [self.traceManager.trace])
if (self.breakpointManager && self.breakpointManager.hasBreakpoint()) {
self.breakpointManager.jumpNextBreakpoint(false)
self.breakpointManager.jumpNextBreakpoint(0, false)
}
} else {
self.statusMessage = error ? error.message : 'Trace not loaded'

@ -65,10 +65,10 @@ function StepManager (_parent, _traceManager) {
self.jumpTo(exceptionIndex)
})
this.buttonNavigator.event.register('jumpNextBreakpoint', (exceptionIndex) => {
self.parent.breakpointManager.jumpNextBreakpoint(true)
self.parent.breakpointManager.jumpNextBreakpoint(this.parent.currentStepIndex, true)
})
this.buttonNavigator.event.register('jumpPreviousBreakpoint', (exceptionIndex) => {
self.parent.breakpointManager.jumpPreviousBreakpoint(true)
self.parent.breakpointManager.jumpPreviousBreakpoint(this.parent.currentStepIndex, true)
})
}

Loading…
Cancel
Save