From 1304a2ae0a94d840efa989aa2f5d17e0e8111642 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 5 Nov 2013 11:42:03 +0100 Subject: [PATCH] JSPX supports jvm debugging, but not in XHTML files --- .../java/debugger/breakpoints/JavaBreakpointType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/debugger/impl/src/org/jetbrains/java/debugger/breakpoints/JavaBreakpointType.java b/java/debugger/impl/src/org/jetbrains/java/debugger/breakpoints/JavaBreakpointType.java index d3e6545cced1..c2088722880b 100644 --- a/java/debugger/impl/src/org/jetbrains/java/debugger/breakpoints/JavaBreakpointType.java +++ b/java/debugger/impl/src/org/jetbrains/java/debugger/breakpoints/JavaBreakpointType.java @@ -57,7 +57,8 @@ public class JavaBreakpointType extends XLineBreakpointTypeBase { @Contract("null -> false") public static boolean doCanPutAt(@Nullable PsiFile psiFile) { - if (psiFile == null) { + // JSPX supports jvm debugging, but not in XHTML files + if (psiFile == null || psiFile.getVirtualFile().getFileType() == StdFileTypes.XHTML) { return false; }