MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_thread

Method get_thread

pydevd_attach_to_process/winappdbg/event.py:243–259  ·  view source on GitHub ↗

@see: L{get_tid} @rtype: L{Thread} @return: Thread where the event occured.

(self)

Source from the content-addressed store, hash-verified

241 return process
242
243 def get_thread(self):
244 """
245 @see: L{get_tid}
246
247 @rtype: L{Thread}
248 @return: Thread where the event occured.
249 """
250 tid = self.get_tid()
251 process = self.get_process()
252 if process.has_thread(tid):
253 thread = process.get_thread(tid)
254 else:
255 # XXX HACK
256 # The thread object was missing for some reason, so make a new one.
257 thread = Thread(tid)
258 process._add_thread(thread)
259 return thread
260
261
262# ==============================================================================

Callers 15

hitMethod · 0.45
__call__Method · 0.45
__postCallActionMethod · 0.45
__cleanup_breakpointMethod · 0.45
__cleanup_moduleMethod · 0.45
get_all_breakpointsMethod · 0.45

Calls 5

get_tidMethod · 0.95
get_processMethod · 0.95
ThreadClass · 0.90
_add_threadMethod · 0.80
has_threadMethod · 0.45

Tested by

no test coverage detected