mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-130195 Code fragments in debugger can no longer evaluate Grails domain methods
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.debugger.engine;
|
||||
|
||||
import com.intellij.debugger.SourcePosition;
|
||||
import com.intellij.debugger.engine.evaluation.DefaultCodeFragmentFactory;
|
||||
import com.intellij.debugger.engine.evaluation.EvaluateException;
|
||||
import com.intellij.debugger.engine.jdi.StackFrameProxy;
|
||||
import com.intellij.debugger.jdi.LocalVariableProxyImpl;
|
||||
@@ -87,6 +88,11 @@ public class ContextUtil {
|
||||
return null;
|
||||
}
|
||||
|
||||
// further code is java specific, actually
|
||||
if (element.getLanguage().getAssociatedFileType() != DefaultCodeFragmentFactory.getInstance().getFileType()) {
|
||||
return element;
|
||||
}
|
||||
|
||||
final StackFrameProxyImpl frameProxy = (StackFrameProxyImpl)context.getFrameProxy();
|
||||
|
||||
if(frameProxy == null) {
|
||||
|
||||
Reference in New Issue
Block a user