File tree 2 files changed +5
-1
lines changed 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
22
os .environ [str ("PYDEVD_DEBUG" )] = str ("True" )
23
23
os .environ [str ("PYDEVD_DEBUG_FILE" )] = os .environ ["DEBUGPY_LOG_DIR" ] + str ("/debugpy.pydevd.log" )
24
24
25
+ # Disable pydevd frame-eval optimizations only if unset, to allow opt-in.
26
+ if "PYDEVD_USE_FRAME_EVAL" not in os .environ :
27
+ os .environ [str ("PYDEVD_USE_FRAME_EVAL" )] = str ("NO" )
28
+
25
29
# Constants must be set before importing any other pydevd module
26
30
# # due to heavy use of "from" in them.
27
31
with vendored ('pydevd' ):
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ def code_to_debug():
325
325
pass
326
326
327
327
using_frame_eval = backchannel .receive ()
328
- assert using_frame_eval == (frame_eval in ( "yes" , "" ) )
328
+ assert using_frame_eval == (frame_eval == "yes" )
329
329
330
330
331
331
@pytest .mark .parametrize ("run" , [runners .all_launch [0 ]])
You can’t perform that action at this time.
0 commit comments