Re: Getting NSException on NSManagedObjectContext save:
Re: Getting NSException on NSManagedObjectContext save:
- Subject: Re: Getting NSException on NSManagedObjectContext save:
- From: Scott Stevenson <email@hidden>
- Date: Sat, 17 Mar 2007 16:22:02 -0700
On Mar 17, 2007, at 2:57 PM, Neil Clayton wrote:
I managed to find the cause by dumping the object before saving it
and manually staring at every value until I found the nil - is
there some better way? Is there some option I can turn on (an ENV
variable, for example) that would cause CoreData to spit out more
meaningful errors?
One good option is to set a breakpoint on [NSException raise] in the
breakpoints window (Debug > Breakpoints) so that you can see the call
stack when this happens.
There's also the SQLDebug flag, though I'm not sure how it will help
you here (under "Debugging Fetching"):
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdTroubleshooting.html>
- Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden