mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-148802 Java Scratch files debugging: debugger ignores breakpoints in module classes and doesn't show their sources
This commit is contained in:
@@ -333,7 +333,7 @@ public class PositionManagerImpl implements PositionManager, MultiRequestPositio
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected PsiFile getPsiFileByLocation(final Project project, final Location location) {
|
||||
protected PsiFile getPsiFileByLocation(final Project project, final Location location) throws NoDataException {
|
||||
if (location == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
+14
-3
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.execution.scratch;
|
||||
|
||||
import com.intellij.debugger.NoDataException;
|
||||
import com.intellij.debugger.engine.DebugProcessImpl;
|
||||
import com.intellij.debugger.engine.PositionManagerImpl;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -40,9 +41,7 @@ public class JavaScratchPositionManager extends PositionManagerImpl{
|
||||
myScratchFile = scratchFile;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected PsiFile getPsiFileByLocation(Project project, Location location) {
|
||||
private PsiFile getScratchPsiFileByLocation(Project project, Location location) {
|
||||
if (location == null) {
|
||||
return null;
|
||||
}
|
||||
@@ -78,4 +77,16 @@ public class JavaScratchPositionManager extends PositionManagerImpl{
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected PsiFile getPsiFileByLocation(Project project, Location location) throws NoDataException {
|
||||
PsiFile file = getScratchPsiFileByLocation(project, location);
|
||||
if (file != null) {
|
||||
return file;
|
||||
}
|
||||
else {
|
||||
throw NoDataException.INSTANCE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user