My app keeps crashing at one point. It doesn’t tell me why, the exception breakpoint happens at
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
so I have no idea what’s causing the crash. On left hand side, it tells me it was because of objc_expcetion_throw. How can I debug this?
THanks
In cases like this, I will create a break point that breaks on all exceptions. This is the default breakpoint that gets created if you just click the add button on the breakpoint tab.
With this breakpoint, Xcode will stop at the point of the exception and I see the line of code where it happened along with the stack.
I would have posted an image of this but I do not have enough rep!