mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user