From f4843241cca061000dbeab4ac6c50ae01e0d770f Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Fri, 24 Oct 2014 12:31:43 +0200 Subject: [PATCH] Run lldb in shell and inherit parent std handles. --- .../pydevd_attach_to_process/add_code_to_python_process.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()