295 Bootstrap for threading, which reports exceptions correctly. |
295 Bootstrap for threading, which reports exceptions correctly. |
296 |
296 |
297 @param run the run method of threading.Thread |
297 @param run the run method of threading.Thread |
298 @type method pointer |
298 @type method pointer |
299 """ |
299 """ |
300 newThread = _debugClient.threads[self.ident] |
300 newThread = DebugBase(_debugClient) |
|
301 _debugClient.threads[self.ident] = newThread |
301 newThread.name = self.name |
302 newThread.name = self.name |
302 # see DebugBase.bootstrap |
303 # see DebugBase.bootstrap |
303 sys.settrace(newThread.trace_dispatch) |
304 sys.settrace(newThread.trace_dispatch) |
304 try: |
305 try: |
305 run() |
306 run() |