• 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: Jim Ingham <email@hidden>
  • Date: Thu, 04 Feb 2016 10:24:33 -0800

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


> On Feb 4, 2016, at 5:57 AM, Dave <email@hidden> wrote:
>
> Hi,
>
> I’m trying to debug an App. I have a regular object that contains NSString's, NSArray’s and NSDictionary’s. I have a method that does an alloc/init to get a new one, but after the init call, the debugger shows the Object as LTWNodeInfo @“0 objects”  as if its an array and if I try to inspect it, it won’t show be any of the properties. If I print it to the log is says its the right class.
>
> What could someone tell me why this is happening and how to fix it?
>
> I’m using the latest version of XCode.
>
> Thanks in advance
> Dave
>
>
> _______________________________________________
> 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


 _______________________________________________
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: Dave <email@hidden>
References: 
 >Problem with Debugger Showing Object as a Collection? (From: Dave <email@hidden>)

  • Prev by Date: Re: Location of XCode of Apple Developer Site?
  • Next by Date: Re: Problem with Debugger Showing Object as a Collection?
  • Previous by thread: Problem with Debugger Showing Object as a Collection?
  • Next by thread: Re: Problem with Debugger Showing Object as a Collection?
  • Index(es):
    • Date
    • Thread