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

Method suspend

pydevd_attach_to_process/winappdbg/thread.py:391–406  ·  view source on GitHub ↗

Suspends the thread execution. @rtype: int @return: Suspend count. If zero, the thread is running.

(self)

Source from the content-addressed store, hash-verified

389 # was suspended, so on debugger exit they could (optionally!) be restored
390
391 def suspend(self):
392 """
393 Suspends the thread execution.
394
395 @rtype: int
396 @return: Suspend count. If zero, the thread is running.
397 """
398 hThread = self.get_handle(win32.THREAD_SUSPEND_RESUME)
399 if self.is_wow64():
400 # FIXME this will be horribly slow on XP 64
401 # since it'll try to resolve a missing API every time
402 try:
403 return win32.Wow64SuspendThread(hThread)
404 except AttributeError:
405 pass
406 return win32.SuspendThread(hThread)
407
408 def resume(self):
409 """

Callers 6

get_contextMethod · 0.95
set_contextMethod · 0.95
change_registerMethod · 0.45
__clear_bpMethod · 0.45
__set_bpMethod · 0.45

Calls 2

get_handleMethod · 0.95
is_wow64Method · 0.95

Tested by

no test coverage detected