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

Method suspend

pydevd_attach_to_process/winappdbg/process.py:371–389  ·  view source on GitHub ↗

Suspends execution on all threads of the process. @raise WindowsError: On error an exception is raised.

(self)

Source from the content-addressed store, hash-verified

369 win32.TerminateProcess(hProcess, dwExitCode)
370
371 def suspend(self):
372 """
373 Suspends execution on all threads of the process.
374
375 @raise WindowsError: On error an exception is raised.
376 """
377 self.scan_threads() # force refresh the snapshot
378 suspended = list()
379 try:
380 for aThread in self.iter_threads():
381 aThread.suspend()
382 suspended.append(aThread)
383 except Exception:
384 for aThread in suspended:
385 try:
386 aThread.resume()
387 except Exception:
388 pass
389 raise
390
391 def resume(self):
392 """

Callers 3

killMethod · 0.95
resumeMethod · 0.45

Calls 4

scan_threadsMethod · 0.80
iter_threadsMethod · 0.80
appendMethod · 0.45
resumeMethod · 0.45

Tested by

no test coverage detected