Commit ed0d6b99 authored by yann300's avatar yann300

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

parent 710ded61
......@@ -61,7 +61,9 @@ class BreakpointManager {
// depthChange -> returning from an external call
// sourceLocation.start <= previousSourceLocation.start && ... -> previous src is contained in the current one
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
} else {
self.debugger.stepManager.jumpTo(currentStep)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment