Looking at this answer , it shows that CoreData uses exceptions to control the flow of its program. This is why the debugger breaks into objc_exception_throw. As far as I know, there is no way to disable this.
EDIT: Since then, there is currently a solution to ignore these exceptions: Ignore some exceptions when using the Xcode All Exceptions breakpoint
BTW: Do not check for error , but use the return value of BOOL to ensure the success of your save call. The correct way to do this is:
NSError *error = nil; BOOL success = [self.managedObjectContext save:&error]; if (!success) { NSLog(@"Error : %@",error); }
CipherCom Nov 05 '12 at 16:45 2012-11-05 16:45
source share