From 87692ecb0526c10b713e7a3638bb72e324710731 Mon Sep 17 00:00:00 2001 From: "liana.bakradze" Date: Tue, 25 Aug 2015 18:46:52 +0300 Subject: [PATCH] excluded python helpers from frames view --- .../com/jetbrains/python/edu/debugger/PyEduDebugProcess.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }); } -- 2.32.0