From 4fa9140f85e6956e68424699f8e94d163b89aede Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Wed, 19 Aug 2015 13:54:18 +0300 Subject: [PATCH] IDEA-143852 Debugger does not stop at breakpoints at junit tests --- .../com/intellij/debugger/ui/breakpoints/LineBreakpoint.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java index 3f453d24d87d..0f33f7dfff15 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java @@ -201,9 +201,8 @@ public class LineBreakpoint

extends Breakpoi protected boolean acceptLocation(final DebugProcessImpl debugProcess, ReferenceType classType, final Location loc) { Method method = loc.method(); - if (DebuggerUtils.isSynthetic(method)) { - return false; - } + // Some frameworks may create synthetic methods with lines mapped to user code, see IDEA-143852 + // if (DebuggerUtils.isSynthetic(method)) { return false; } boolean res = !(method.isConstructor() && loc.codeIndex() == 0 && isAnonymousClass(classType)); if (!res) return false; return ApplicationManager.getApplication().runReadAction(new Computable() {