Disable frame evaluation for remote debug server
We do it in order to have ability to stop on the next line after the settrace() call
@@ -79,6 +79,7 @@ connected = False
bufferStdOutToServer = False
bufferStdErrToServer = False
remote = False
+inside_fork = False
file_system_encoding = getfilesystemencoding()
@@ -1232,6 +1233,11 @@ def _locked_settrace(
while not debugger.ready_to_run:
time.sleep(0.1) # busy wait until we receive run command
+ global inside_fork
+ if frame_eval_func is not None and not inside_fork:
+ # Disable frame evaluation for Remote Debug Server
+ debugger.frame_eval_func = None
+
# note that we do that through pydevd_tracing.SetTrace so that the tracing
# is not warned to the user!
pydevd_tracing.SetTrace(debugger.trace_dispatch, debugger.frame_eval_func)
@@ -1371,6 +1377,8 @@ def settrace_forked():
if port is not None:
global connected
connected = False
+ global inside_fork
+ inside_fork = True
custom_frames_container_init()
