Function setExceptionHandler

  • Installs a process-wide exception handler callback that gets a chance to handle native exceptions before the hosting process itself does.

    It is up to your callback to decide what to do with the exception. It could for example:

    • Log the issue.
    • Notify your application through a send() followed by a blocking recv() for acknowledgement of the sent data being received.
    • Modify registers and memory to recover from the exception.

    You should return true if you did handle the exception, in which case Frida will resume the thread immediately. If you do not return true, Frida will forward the exception to the hosting process' exception handler, if it has one, or let the OS terminate the process.

    Parameters

    Returns void

Generated using TypeDoc