• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode Debugger Shows Incorrect Variable Information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Xcode Debugger Shows Incorrect Variable Information (From: Richard Charles <email@hidden>)
 >Re: Xcode Debugger Shows Incorrect Variable Information (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: ARC and Manual Memory Management
  • Next by Date: Re: ARC and Manual Memory Management
  • Previous by thread: Re: Xcode Debugger Shows Incorrect Variable Information
  • Next by thread: Nullability annotation "best practice"
  • Index(es):
    • Date
    • Thread