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

Method set_process

pydevd_attach_to_process/winappdbg/window.py:204–220  ·  view source on GitHub ↗

Manually set the parent process. Use with care! @type process: L{Process} @param process: (Optional) Process object. Use C{None} to autodetect.

(self, process=None)

Source from the content-addressed store, hash-verified

202 return self.__process
203
204 def set_process(self, process=None):
205 """
206 Manually set the parent process. Use with care!
207
208 @type process: L{Process}
209 @param process: (Optional) Process object. Use C{None} to autodetect.
210 """
211 if process is None:
212 self.__process = None
213 else:
214 self.__load_Process_class()
215 if not isinstance(process, Process):
216 msg = "Parent process must be a Process instance, "
217 msg += "got %s instead" % type(process)
218 raise TypeError(msg)
219 self.dwProcessId = process.get_pid()
220 self.__process = process
221
222 def get_thread(self):
223 """

Callers 2

__init__Method · 0.95
__get_windowMethod · 0.95

Calls 2

__load_Process_classMethod · 0.95
get_pidMethod · 0.45

Tested by

no test coverage detected