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

Method is_debugged

pydevd_attach_to_process/winappdbg/process.py:412–429  ·  view source on GitHub ↗

Tries to determine if the process is being debugged by another process. It may detect other debuggers besides WinAppDbg. @rtype: bool @return: C{True} if the process has a debugger attached. @warning: May return inaccurate results when some ant

(self)

Source from the content-addressed store, hash-verified

410 raise
411
412 def is_debugged(self):
413 """
414 Tries to determine if the process is being debugged by another process.
415 It may detect other debuggers besides WinAppDbg.
416
417 @rtype: bool
418 @return: C{True} if the process has a debugger attached.
419
420 @warning:
421 May return inaccurate results when some anti-debug techniques are
422 used by the target process.
423
424 @note: To know if a process currently being debugged by a L{Debug}
425 object, call L{Debug.is_debugee} instead.
426 """
427 # FIXME the MSDN docs don't say what access rights are needed here!
428 hProcess = self.get_handle(win32.PROCESS_QUERY_INFORMATION)
429 return win32.CheckRemoteDebuggerPresent(hProcess)
430
431 def is_alive(self):
432 """

Callers

nothing calls this directly

Calls 1

get_handleMethod · 0.95

Tested by

no test coverage detected