From: Liana Bakradze Date: Fri, 15 Apr 2016 12:40:26 +0000 (+0300) Subject: EDU-475 Step over in debugger doesn't work for unresolved reference X-Git-Tag: appcode/146.1290~15 X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=d928219e9ee8bdfb05b942b2bd2fdcf3f01e2e65 EDU-475 Step over in debugger doesn't work for unresolved reference --- diff --git a/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java b/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java index 4783df316a85..fd0c6f2f38e9 100644 --- a/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java +++ b/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugProcess.java @@ -57,12 +57,13 @@ class PyEduDebugProcess extends PyDebugProcess { return Collections.emptyList(); } final String helpersPath = PythonHelpersLocator.getHelpersRoot().getPath(); - return Collections2.filter(frames, new Predicate() { + Collection filteredFrames = Collections2.filter(frames, new Predicate() { @Override public boolean apply(PyStackFrameInfo frame) { String file = frame.getPosition().getFile(); return !FileUtil.isAncestor(helpersPath, file, false); } }); + return !filteredFrames.isEmpty() ? filteredFrames : frames; } }