iOS Crash without Error or Stack Trace iOS Crash without Error or Stack Trace ios ios

iOS Crash without Error or Stack Trace


Try reading the registers.

Whenever my app crashes without error, in most cases I have found the exception in the registers.

First go to Exceptions tab and 'Add Exception Breakpoint' using the + at the bottom left corner.enter image description here

Then when the app crashes click on "0 objc_exception_throw" under Thread 1enter image description here

Finally in the console enter:

  • register read(you should get a list of registers)

  • po $rax (normally the exception is in 'rax')

    (you should see the exception output on the console)

Hope this helps.


For lack of a better solution, and if it isn't obvious, pepper your app with NSLogs to circle where this occurs, then drill deeper from there via breakpoints and/or additional logs.


Super late answer, but I've found that using try/catch helps give information when I can't get a stack trace and my application pulls a Keiser Soze.

@try{  // suspected code causing crash/errors}@catch (NSException *exception){  NSLog(@"Exception: %@", exception);}