PY-45659 Python isolated mode (-I) breaks subprocess debugging (pr #1488)

Signed-off-by: Elizaveta Shashkova <elizaveta.shashkova@jetbrains.com>

IDEA-CR-69971

GitOrigin-RevId: 9db39b45fe40dd7d60af38c49d9cbb76870ac7f6
This commit is contained in:
gaborbernat
2020-12-31 11:13:01 +00:00
committed by intellij-monorepo-bot
parent 69ddf4c068
commit 6e3c457f43
+6
View File
@@ -3,10 +3,16 @@ Entry point module (keep at root):
This module starts the debugger.
'''
import os
import sys
from contextlib import contextmanager
import weakref
# allow the debugger to work in isolated mode Python
here = os.path.dirname(os.path.abspath(__file__))
if here not in sys.path:
sys.path.insert(0, here)
from _pydevd_bundle.pydevd_collect_try_except_info import collect_return_info
if sys.version_info[:2] < (2, 6):