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

Method __hook_dll

pydevd_attach_to_process/winappdbg/event.py:1438–1447  ·  view source on GitHub ↗

Hook the requested API calls (in self.apiHooks). This method is called automatically whenever a DLL is loaded.

(self, event)

Source from the content-addressed store, hash-verified

1436 return result
1437
1438 def __hook_dll(self, event):
1439 """
1440 Hook the requested API calls (in self.apiHooks).
1441
1442 This method is called automatically whenever a DLL is loaded.
1443 """
1444 debug = event.debug
1445 pid = event.get_pid()
1446 for hook_api_stub in self.__get_hooks_for_dll(event):
1447 hook_api_stub.hook(debug, pid)
1448
1449 def __unhook_dll(self, event):
1450 """

Callers 1

__call__Method · 0.95

Calls 3

__get_hooks_for_dllMethod · 0.95
get_pidMethod · 0.45
hookMethod · 0.45

Tested by

no test coverage detected