Debug GDB interrupt when error is not displayed

I had a problem when I get a GDB interrupt at a certain point during the launch of the application in debugging, but the error message is not displayed in the debugger.

This code:

- (void)AddContactViewControllerDidFinish:(AddContactViewController *)controller {
 // Save contact & requirement
 NSManagedObjectContext *context = [self managedObjectContext];
 Contact *contactObj = [NSEntityDescription insertNewObjectForEntityForName:@"Contact" inManagedObjectContext:context];

 [contactObj setValue:[[[controller.textFields objectAtIndex:0] objectAtIndex:0] text] forKey:@"Name"];
 [contactObj setValue:[[[controller.textFields objectAtIndex:0] objectAtIndex:1] text] forKey:@"PhoneBH"];
 [contactObj setValue:[[[controller.textFields objectAtIndex:0] objectAtIndex:2] text] forKey:@"PhoneAH"];
 [contactObj setValue:[[[controller.textFields objectAtIndex:0] objectAtIndex:3] text] forKey:@"Mobile"];
 [contactObj setValue:[[[controller.textFields objectAtIndex:0] objectAtIndex:4] text] forKey:@"Email"];
 UISwitch *switcho = [[controller.textFields objectAtIndex:0] objectAtIndex:5];
 [contactObj setValue:[NSNumber numberWithBool:switcho.on] forKey:@"PropertyAlerts"];
 NSDate *LastModified = [[NSDate alloc] init];
 [contactObj setValue:LastModified forKey:@"LastModified"];
 [LastModified release];
 [openhome addContactObject:contactObj];
 [contactObj addOpenhomeObject:openhome];

The last line is here where I get the interrupt. Essentially, what I'm doing here is preparing contactObj to save using Core Data, and this delegate method is called when the Finish button gets into the view controller, displayed in modal mode.

So my question is that the error is not displayed , how can I find out what causes the interrupt?

+3
source share
1 answer

NSZombie. XCode , , .

+1

Source: https://habr.com/ru/post/1787574/


All Articles