MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / attach

Method attach

windows/debug/debugger.py:85–94  ·  view source on GitHub ↗

attach to ``target`` (must be a :class:`WinProcess`) :rtype: :class:`Debugger` .. note:: see :ref:`Debugger.attach sample `

(cls, target)

Source from the content-addressed store, hash-verified

83
84 @classmethod
85 def attach(cls, target):
86 """attach to ``target`` (must be a :class:`WinProcess`)
87
88 :rtype: :class:`Debugger`
89
90 .. note::
91
92 see :ref:`Debugger.attach sample <sample_debugger_attach>`"""
93 winproxy.DebugActiveProcess(target.pid)
94 return cls(target)
95
96 def detach(self, target=None):
97 """Detach from all debugged processes or process ``target``"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected