diff --git a/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py b/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py index 9ca7b3903881..05a3d7957fcb 100644 --- a/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py +++ b/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py @@ -549,10 +549,10 @@ def run_python_code_mac(pid, python_code, connect_debugger_tracing=False, show_d print('Running: %s' % (' '.join(cmd))) p = subprocess.Popen( ' '.join(cmd), - shell=False, + shell=True, env=env, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, + stdout=None, + stderr=None, ) print('Running lldb in target process.') out, err = p.communicate()