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

Method get_process

pydevd_attach_to_process/winappdbg/event.py:223–241  ·  view source on GitHub ↗

@see: L{get_pid} @rtype: L{Process} @return: Process where the event occured.

(self)

Source from the content-addressed store, hash-verified

221 return self.raw.dwThreadId
222
223 def get_process(self):
224 """
225 @see: L{get_pid}
226
227 @rtype: L{Process}
228 @return: Process where the event occured.
229 """
230 pid = self.get_pid()
231 system = self.debug.system
232 if system.has_process(pid):
233 process = system.get_process(pid)
234 else:
235 # XXX HACK
236 # The process object was missing for some reason, so make a new one.
237 process = Process(pid)
238 system._add_process(process)
239 ## process.scan_threads() # not needed
240 process.scan_modules()
241 return process
242
243 def get_thread(self):
244 """

Callers 15

get_threadMethod · 0.95
hitMethod · 0.45
__call__Method · 0.45
__call__Method · 0.45
hookMethod · 0.45
__cleanup_breakpointMethod · 0.45
__cleanup_processMethod · 0.45
__cleanup_moduleMethod · 0.45

Calls 5

get_pidMethod · 0.95
ProcessClass · 0.90
has_processMethod · 0.80
_add_processMethod · 0.80
scan_modulesMethod · 0.45

Tested by

no test coverage detected