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

Method hook

pydevd_attach_to_process/winappdbg/breakpoint.py:1375–1392  ·  view source on GitHub ↗

Installs the function hook at a given process and address. @see: L{unhook} @warning: Do not call from an function hook callback. @type debug: L{Debug} @param debug: Debug object. @type pid: int @param pid: Process ID. @type add

(self, debug, pid, address)

Source from the content-addressed store, hash-verified

1373 return stack
1374
1375 def hook(self, debug, pid, address):
1376 """
1377 Installs the function hook at a given process and address.
1378
1379 @see: L{unhook}
1380
1381 @warning: Do not call from an function hook callback.
1382
1383 @type debug: L{Debug}
1384 @param debug: Debug object.
1385
1386 @type pid: int
1387 @param pid: Process ID.
1388
1389 @type address: int
1390 @param address: Function address.
1391 """
1392 return debug.break_at(pid, address, self)
1393
1394 def unhook(self, debug, pid, address):
1395 """

Callers 2

hookMethod · 0.95
__hook_dllMethod · 0.45

Calls 1

break_atMethod · 0.80

Tested by

no test coverage detected