DebugClients/Python2/DebugThread.py

changeset 5161
f7b6ded9cc37
parent 5133
b7fe69c6cb1c
equal deleted inserted replaced
5160:d8908660fc65 5161:f7b6ded9cc37
38 self._target = targ 38 self._target = targ
39 self._args = args 39 self._args = args
40 self._kwargs = kwargs 40 self._kwargs = kwargs
41 self._mainThread = mainThread 41 self._mainThread = mainThread
42 # thread running tracks execution state of client code 42 # thread running tracks execution state of client code
43 # it will always be 0 for main thread as that is tracked 43 # it will always be False for main thread as that is tracked
44 # by DebugClientThreads and Bdb... 44 # by DebugClientThreads and Bdb...
45 self._threadRunning = False 45 self._threadRunning = False
46 46
47 self.__ident = None # id of this thread. 47 self.__ident = None # id of this thread.
48 self.__name = "" 48 self.__name = ""
76 """ 76 """
77 Public method to setup tracing for this thread. 77 Public method to setup tracing for this thread.
78 """ 78 """
79 self.set_trace() 79 self.set_trace()
80 if not self._mainThread: 80 if not self._mainThread:
81 self.set_continue(0) 81 self.set_continue(False)
82 82
83 def bootstrap(self): 83 def bootstrap(self):
84 """ 84 """
85 Public method to bootstrap the thread. 85 Public method to bootstrap the thread.
86 86

eric ide

mercurial