Re: Opaque types are nice concepts but how do you debug that?
Re: Opaque types are nice concepts but how do you debug that?
- Subject: Re: Opaque types are nice concepts but how do you debug that?
- From: "Yves Poissant" <email@hidden>
- Date: Fri, 2 Sep 2005 08:23:22 -0400
- Organization: Hash Enterprises Inc.
Theoretically you can type:
print (int)CFShow( myDictionary )
into the debugger console. Unfortunately, for me this always results
in a message saying that the program was signalled in a function
called by GDB followed by debugging mayhem, but I know it works for
most people.
For me, it prints "out of scope".
The CFDictionary is in a list so if I enter "dn->m_dict" alone, the
expression window prints "6 entries". But if I enter "print
(int)CFShow(dn->m_dict)" or "call (void)CFShow(dn->m_dict)" or simply
"CFShow(dn->m_dict)", I get an "out of scope". Why? The pointer dn is local
to the function.
Also, technote TN2124 can't be publicized too much, so here's a free
plug:
http://developer.apple.com/technotes/tn2004/tn2124.html
Got to read that document. Thanks.
Yves Poissant
_______________________________________________
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