Fix debugging for IronPython (PY-20959)

Remove duplication and fix generator exception
This commit is contained in:
Elizaveta Shashkova
2018-03-30 14:17:42 +03:00
parent 325d62fdb7
commit 413b5856c2
2 changed files with 3 additions and 4 deletions
@@ -28,10 +28,7 @@ try:
try:
return sys._getframe()
except ValueError:
if IS_IRONPYTHON:
pass
else:
raise
pass
except AttributeError:
def get_frame():
raise AssertionError('sys._getframe not available (possible causes: enable -X:Frames on IronPython?)')
@@ -79,6 +79,8 @@ def _do_not_trace_ctx():
current_thread.pydev_do_not_trace = True
try:
yield
except:
pass
finally:
current_thread.pydev_do_not_trace = do_not_trace_before