• 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: Problem with Debugger Showing Object as a Collection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Debugger Showing Object as a Collection?


  • Subject: Re: Problem with Debugger Showing Object as a Collection?
  • From: Dave <email@hidden>
  • Date: Thu, 04 Feb 2016 20:17:36 +0000

Apparently it an XCode Feature/Bug.


On 4 Feb 2016, at 18:24, Jim Ingham <email@hidden> wrote:

Make sure you aren't inspecting the object before it is initialized.  Xcode prints the dynamic type of variables rather than their static type.  That's pretty useful, e.g. if a method takes an "id" we'll show you the real object passed not just the isa ivar.  But an uninitialized local variable's value will be whatever was in the stack slot that last time this bit of the stack was used.  If that was a pointer to some ObjC object even though the object is not good anymore, if its isa pointer hasn't been overwritten its dynamic type will be the type of the previous object.

Jim


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problem with Debugger Showing Object as a Collection?
      • From: Kate Stone <email@hidden>
References: 
 >Problem with Debugger Showing Object as a Collection? (From: Dave <email@hidden>)
 >Re: Problem with Debugger Showing Object as a Collection? (From: Jim Ingham <email@hidden>)

  • Prev by Date: Re: Problem with Debugger Showing Object as a Collection?
  • Next by Date: Re: Problem with Debugger Showing Object as a Collection?
  • Previous by thread: Re: Problem with Debugger Showing Object as a Collection?
  • Next by thread: Re: Problem with Debugger Showing Object as a Collection?
  • Index(es):
    • Date
    • Thread