Skip to content

Commit

Permalink
Fix os.environ encoding on Python 2.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
int19h committed Aug 26, 2020
1 parent 677fef7 commit 6200c1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/debugpy/_vendored/force_pydevd.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

# If debugpy logging is enabled, enable it for pydevd as well
if "DEBUGPY_LOG_DIR" in os.environ:
os.environ["PYDEVD_DEBUG"] = str("True")
os.environ["PYDEVD_DEBUG_FILE"] = os.environ["DEBUGPY_LOG_DIR"] + str("/debugpy.pydevd.log")
os.environ[str("PYDEVD_DEBUG")] = str("True")
os.environ[str("PYDEVD_DEBUG_FILE")] = os.environ["DEBUGPY_LOG_DIR"] + str("/debugpy.pydevd.log")

# Work around https://github.com/microsoft/debugpy/issues/346.
# Disable pydevd frame-eval optimizations only if unset, to allow opt-in.
if "PYDEVD_USE_FRAME_EVAL" not in os.environ:
os.environ["PYDEVD_USE_FRAME_EVAL"] = str("NO")
os.environ[str("PYDEVD_USE_FRAME_EVAL")] = str("NO")


# Constants must be set before importing any other pydevd module
Expand Down

0 comments on commit 6200c1d

Please sign in to comment.