Don't stop If the current source location contains the previous one.

pull/7/head
yann300 8 years ago
parent 710ded61ee
commit ed0d6b999f
  1. 4
      src/code/breakpointManager.js

@ -61,7 +61,9 @@ class BreakpointManager {
// depthChange -> returning from an external call // depthChange -> returning from an external call
// sourceLocation.start <= previousSourceLocation.start && ... -> previous src is contained in the current one // sourceLocation.start <= previousSourceLocation.start && ... -> previous src is contained in the current one
if (helper.isJumpDestInstruction(self.debugger.traceManager.trace[currentStep]) && previousSourceLocation.jump === 'o' || if (helper.isJumpDestInstruction(self.debugger.traceManager.trace[currentStep]) && previousSourceLocation.jump === 'o' ||
depthChange(currentStep, self.debugger.traceManager.trace)) { depthChange(currentStep, self.debugger.traceManager.trace) ||
(sourceLocation.start <= previousSourceLocation.start &&
sourceLocation.start + sourceLocation.length >= previousSourceLocation.start + previousSourceLocation.length)) {
return false return false
} else { } else {
self.debugger.stepManager.jumpTo(currentStep) self.debugger.stepManager.jumpTo(currentStep)

Loading…
Cancel
Save