Re: Viewing arrays in the debugger?
Re: Viewing arrays in the debugger?
- Subject: Re: Viewing arrays in the debugger?
- From: Dallas Hockley <email@hidden>
- Date: Sun, 19 Sep 2004 17:01:13 -0600
I was finding the same awkwardness. Given that Obj-C has run-time
introspection, as does Java, there doesn't seem to be any reason the
debugger couldn't support viewing the array elements dynamically
without all the machinations you're referring to from the .NET
environment. Eclipse and JBuilder will pull the array apart correctly
and dynamically.
I believe it's less of a bug and more of a "haven't got there yet", but
you should (as should I) file it as a bug with Apple.
Dallas
On 19-Sep-04, at 3:13 PM, Quinn Dunki wrote:
Hello, folks!
I'm new to XCode (coming from Visual Studio .NET on PCs), and I'm
stumped by something. If I have a pointer to what I know is an array
of objects, how do I view that array in the debugger?
Example:
MyClass *pArray = new MyClass[10];
XCode shows this as a pointer to one instance of MyClass (as debuggers
usually do):
|> pArray | <address> |
Clicking the flippy triangle merely dereferences the pointer once and
shows me the first instance in my array. But in .NET, I could do this
in an expressions window to see my array:
pArray,10
...which says to the debugger, "Trust me, I know there are 10 of those
in a row". Can XCode do something like this? For now, I'm manually
viewing my array entries by typing this into the Expressions Window:
pArray[0]
pArray[1]
...
Tedious, to say the least! I searched Google, the XCode docs, and this
list archive, to no avail. Any help would be appreciated!
Sandy
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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