-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem in accessing callback_args in callback function. #9
Comments
def __breakpoint_function(self, **kwargs): kwargs does not have callback_args key - kwargs: {'slot': 0, 'addr': 5355082858L, 'enabled': True, 'singleshoot': False, 'active': True, 'mod': 'jugsofbeer.exe', 'type': 1, 'name': ''} __breakpoint dict has callback_args entry for added breakpoint - Breakpoint added at return address 5355082858. |
Please Look At the following example of implementation: Breakpoint should be used only as a global array (It's a Singleton). Little information about Breapoint object:filter(lambda x: '__' not in x, dir(Breakpoint)): help(Breakpoint.add): |
can you help me with example where callback_args = (arg1,arg2,arg3) is passed? |
def is_debugger_present_callback(addr, name): Breakpoint.add(
instead of creating a callback that get **kwargs or all those keys (type, addr, enabled, singleshoot, active, mod, name, slot), you can choose what args you will get. |
from x64dbgpy.__breakpoints import *
bp = Breakpoint()
bp.add(address,func_callback,bp_type=NORMAL,hw_type=EXECUTE,callback_args=(param1,param2,param3))
def func_callback(*callback_args):
print callback_args
getting empty tuple.callback_args = ()
The text was updated successfully, but these errors were encountered: