After using a NSAssert()
that throws a NSInternalInconsistencyException
exception in an Objective-C application running on an iPad device (compiled
A couple of useful things:
If you're running your app out of Xcode, add an exception breakpoint. In the breakpoint navigator (command-6) hit the '+' at the very bottom left to add. This will pause execution on the line that throws the exception and allow you to inspect the current scope, stack, etc.
If you're using gdb, use bt
to print the backtrace
If you're using lldb, use thread backtrace
instead