if there are 2 breakpoints on first line for the same file name (e.g. test.js), we must not stop in incorrect file

This commit is contained in:
Vladimir Krivosheev
2016-03-26 13:25:43 +01:00
parent 7b242dd3e3
commit ea99c348b0
@@ -211,11 +211,9 @@ abstract class LineBreakpointManager(internal val debugProcess: DebugProcessImpl
protected abstract fun doRunToLocation(position: XSourcePosition): List<Breakpoint>
fun isRunToCursorBreakpoints(breakpoints: List<Breakpoint>): Boolean {
synchronized (runToLocationBreakpoints) {
return runToLocationBreakpoints.containsAll(breakpoints)
}
}
fun isRunToCursorBreakpoints(breakpoints: List<Breakpoint>) = synchronized (runToLocationBreakpoints) { runToLocationBreakpoints.containsAll(breakpoints) }
fun isRunToCursorBreakpoint(breakpoint: Breakpoint) = synchronized (runToLocationBreakpoints) { runToLocationBreakpoints.contains(breakpoint) }
fun updateAllBreakpoints(vm: Vm) {
val array = synchronized (lock) { IDE_TO_VM_BREAKPOINTS_KEY.get(vm)?.let { it.keys.toTypedArray() } } ?: return