mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix tests: we should always check if suspend policy "All" is supported for the breakpoint type. Otherwise we break Django template debugging
This commit is contained in:
@@ -533,7 +533,8 @@ public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess, Pr
|
||||
breakpoint = myRegisteredExceptionBreakpoints.get(exceptionName);
|
||||
}
|
||||
}
|
||||
if ((breakpoint != null) && (breakpoint.getSuspendPolicy() == SuspendPolicy.ALL)) {
|
||||
if ((breakpoint != null) && (breakpoint.getType().isSuspendThreadSupported()) &&
|
||||
(breakpoint.getSuspendPolicy() == SuspendPolicy.ALL)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -855,7 +856,7 @@ public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess, Pr
|
||||
}
|
||||
}
|
||||
if (breakpoint != null) {
|
||||
if (breakpoint.getSuspendPolicy() == SuspendPolicy.ALL) {
|
||||
if ((breakpoint.getType().isSuspendThreadSupported()) && (breakpoint.getSuspendPolicy() == SuspendPolicy.ALL)) {
|
||||
suspendAllOtherThreads(threadInfo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user