Merge pull request #1194 from ethereum/fixDebuggerBreakpoint

[BreakpointManager] fix API use
pull/1/head
yann300 7 years ago committed by GitHub
commit d631ccb460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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