• 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: Private ivar not showing up in debugger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Private ivar not showing up in debugger?


  • Subject: Re: Private ivar not showing up in debugger?
  • From: Jean-Denis MUYS <email@hidden>
  • Date: Mon, 29 Oct 2012 08:35:19 +0000
  • Thread-topic: Private ivar not showing up in debugger?

On 27 oct. 2012, at 00:31, Rick Mann <email@hidden>
 wrote:

> Hi. I've got a class implemented in Objective-C++. In the .mm file, I have
>
> @interface MissionEventWaterfallView()
> {
> 	uint32_t	mMaxEventsDisplayed;
> }
>
> When I expand self in the debugger while stopped in a method of the class, mMaxEventsDisplayed is not shown. A little experimentation shows that no ivars declared in the class extension show up there, but the compiler is able to reference them properly.
>
> Is this a known limitation?
>
> --
> Rick
>

I have been getting this problem for too long, I would say since I switched from Xcode 3 to Xcode 4. IMHO this "feature" is a bug. I am not sure when this happens. It used to happen all the time. It seems to me it happens less with 4.5.1. You mentioned a .mm file. Would you so far as to say that this issue comes up with Objective-C++ 100% of the time, and with Objective-C 0% of the time?

If you try to move the class extension to a .m file (to the extent that might be possible), does that fix the issue?

if you type "po self->mMaxEventsDisplayed", do you get the value of the ivar?

Does it help if you switch from an iVar to a @property?

Are you using GDB or LLDB?

Which version of Xcode are you running?

Which compiler do you use?

If we could reduce the issue to a simple test case, that would help a lot.

Regards,

Jean-Denis


 _______________________________________________
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

References: 
 >Private ivar not showing up in debugger? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: How to make a path relative to the current Xcode application?
  • Next by Date: Re: Instruments source line colors?
  • Previous by thread: Private ivar not showing up in debugger?
  • Next by thread: Stepping through out of order?
  • Index(es):
    • Date
    • Thread