Skip to content

Instantly share code, notes, and snippets.

@kmdarshan
Created April 2, 2019 05:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Detecting a crash in xcode without any stack trace
Many times you might have observed your app crashing from xcode without any stack trace in the console. This might be due to exceptions.
The easiest way to catch this is through xcode itself.
a. go to your breakpoints/exceptions tab.
b. 'Add Exception Breakpoint' using the + at the bottom left corner.
c. run your code. when the exception hits, you will see the debugger stop.
d. to dig deeper, go to the crashed thread.
e. type 'register read'
f. type 'po $rax'
g. most times, you will see the details here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment