From dc14c65ac7e34e4cbac2c41a0407c9cca6a353c9 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Wed, 29 Oct 2014 00:06:53 +0100 Subject: [PATCH] Less debug info. --- .../pydevd_attach_to_process/linux/lldb_threads_prepare.py | 1 + .../linux/lldb_threads_settrace.py | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_prepare.py b/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_prepare.py index 3495cd5e25ec..21025d7e2097 100644 --- a/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_prepare.py +++ b/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_prepare.py @@ -11,6 +11,7 @@ def __lldb_init_module(debugger, internal_dict): process = target.GetProcess() if process: for thread in process: + # print('Marking process thread %d'%thread.GetThreadID()) internal_dict['_thread_%d' % thread.GetThreadID()] = True # thread.Suspend() except: diff --git a/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_settrace.py b/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_settrace.py index b645807367b5..4abb96ff1d4a 100644 --- a/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_settrace.py +++ b/python/helpers/pydev/pydevd_attach_to_process/linux/lldb_threads_settrace.py @@ -2,7 +2,7 @@ # the attach_linux.dylib dll has already been loaded to settrace for all threads. def __lldb_init_module(debugger, internal_dict): # Command Initialization code goes here - print('Startup LLDB in Python!') + # print('Startup LLDB in Python!') import lldb try: @@ -14,12 +14,11 @@ def __lldb_init_module(debugger, internal_dict): if process: for thread in process: # Get the first frame - print('Thread %s, suspended %s\n'%(thread, thread.IsStopped())) - print(thread.GetName()) + # print('Thread %s, suspended %s\n'%(thread, thread.IsStopped())) process.SetSelectedThread(thread) - if getattr(internal_dict, '_thread_%d' % thread.GetThreadID(), False): + if internal_dict.get('_thread_%d' % thread.GetThreadID(), False): frame = thread.GetSelectedFrame() if frame: print('Will settrace in: %s' % (frame,))