Re: Xcode Debugger Shows Incorrect Variable Information
Re: Xcode Debugger Shows Incorrect Variable Information
- Subject: Re: Xcode Debugger Shows Incorrect Variable Information
- From: Richard Charles <email@hidden>
- Date: Mon, 10 Aug 2015 11:55:33 -0600
> On Aug 9, 2015, at 5:28 PM, Graham Cox <email@hidden> wrote:
>
> Have you set the debug build to optimise the code? Any optimization tends to screw up what the debugger ‘knows’ about your code - symptoms very like what you’ve described. You need to set optimization to ‘none’ for debug builds.
My optimize level for debug is zero so I do not think that is the problem.
GCC_OPTIMIZATION_LEVEL_Debug = 0
NSManagedObject does some things differently. For example the only place you find NS_REQUIRES_PROPERTY_DEFINITIONS is in NSManagedObject.h and NSObjCRuntime.h. Also NSManagedObject has dynamically generated accessor methods based on certain rules and conditions.
So in this instance I think the compiler does one thing and the debugger does another. My example may represent an edge case for the debugger.
--Richard Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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