X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=blobdiff_plain;f=python%2Fedu%2Fsrc%2Fcom%2Fjetbrains%2Fpython%2Fedu%2Fdebugger%2FPyEduDebugProcess.java;h=4783df316a85040028c044808ba761c63a8ef55a;hp=0904ec77284699f9f5492deb032111b778176e3d;hb=87692ecb0526c10b713e7a3638bb72e324710731;hpb=6193a63ddbb4761bb62a578039e24ab5b0b2f77d diff --git a/python/edu/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java b/python/edu/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java index 0904ec772846..4783df316a85 100644 --- a/python/edu/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java +++ b/python/edu/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java @@ -4,6 +4,7 @@ import com.google.common.base.Predicate; import com.google.common.collect.Collections2; import com.intellij.execution.process.ProcessHandler; import com.intellij.execution.ui.ExecutionConsole; +import com.intellij.openapi.util.io.FileUtil; import com.intellij.xdebugger.XDebugSession; import com.jetbrains.python.PythonHelpersLocator; import com.jetbrains.python.debugger.*; @@ -55,12 +56,12 @@ class PyEduDebugProcess extends PyDebugProcess { if (frames == null) { return Collections.emptyList(); } - final String debugger = PythonHelpersLocator.getHelperPath(PyDebugRunner.DEBUGGER_MAIN); + final String helpersPath = PythonHelpersLocator.getHelpersRoot().getPath(); return Collections2.filter(frames, new Predicate() { @Override public boolean apply(PyStackFrameInfo frame) { String file = frame.getPosition().getFile(); - return !debugger.equals(file); + return !FileUtil.isAncestor(helpersPath, file, false); } }); }