SetBP

int SetBP(long address, String callback)

Returns a handle to this breakpoint. The handle can be used to remove this breakpoint via ClearBP().

If a breakpoint is available (if using hardware breakpoints), set a breakpoint at address. If callback is not None, then the function with the name callback will be called when this breakpoint is hit. If the callback function returns False, the debugger will halt and enter the ready state. If callback returns True, the debugger will continue execution as if this breakpoint had not happened. Setting a breakpoint with this function will create a breakpoint that will exist even after the debug session is expired.

Calling this function is the equivalent of setting a breakpoint using the IDE.