mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
some method breakpoints won't work in dum mode
This commit is contained in:
@@ -34,6 +34,7 @@ import com.intellij.debugger.impl.PositionUtil;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.markup.RangeHighlighter;
|
||||
import com.intellij.openapi.project.IndexNotReadyException;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Computable;
|
||||
import com.intellij.openapi.util.IconLoader;
|
||||
@@ -331,8 +332,13 @@ public class MethodBreakpoint extends BreakpointWithHighlighter {
|
||||
new MethodDescriptor();
|
||||
//noinspection HardCodedStringLiteral
|
||||
descriptor.methodName = method.isConstructor() ? "<init>" : method.getName();
|
||||
descriptor.methodSignature = JVMNameUtil.getJVMSignature(method);
|
||||
descriptor.isStatic = method.hasModifierProperty(PsiModifier.STATIC);
|
||||
try {
|
||||
descriptor.methodSignature = JVMNameUtil.getJVMSignature(method);
|
||||
descriptor.isStatic = method.hasModifierProperty(PsiModifier.STATIC);
|
||||
}
|
||||
catch (IndexNotReadyException ignored) {
|
||||
return null;
|
||||
}
|
||||
descriptor.methodLine = document.getLineNumber(methodNameOffset);
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user