Re: How do you view arrays in the debugger?
Re: How do you view arrays in the debugger?
- Subject: Re: How do you view arrays in the debugger?
- From: "Edward K. Chew" <email@hidden>
- Date: Mon, 14 May 2007 19:20:45 -0400
If you can find your pointer in the Variable view (and it's not
flagged with the dreaded "out of scope"), you can select it and go
Debug -> Variables View -> View Value As. This will put up a dialog
showing something like "int *", which you can change to say "int[10]
*" to get an array of 10. I do it this way because most of my
pointers are buried deep within a class hierarchy, making it
difficult to come up with the correct expression on my own.
-Ted
On 14-May-07, at 5:49 PM, Rua Haszard Morris wrote:
This is Xcode. Amazing and wonderful in some respects and curiously
lacking in many simple important respects....
No kidding! Arrays are a nuisance to debug, and then there's C++
template code...
You may be able to do it, I do not want to make the claim that it's
impossible! Just that it is easy to get into a situation where
Xcode doesn't know you're looking at an array.
On May 15, 2007, at 9:43 AM, Rick Mann wrote:
On May 14, 2007, at 14:29 , Rua Haszard Morris wrote:
You can view expressions like r[0] and r[1] in the Expressions
window (Tools/Expressions).
This is a hassle, especially since the expressions window doesn't
really support copy/paste/drag etc, but it is a means to an end :)
I have submitted bugs in about copy/paste in Expressions window -
you might want to submit a bug about array viewing (though surely
it'll be a duplicate!).
Wow, so you really can't do this (aside from the Expressions
window)? Amazing. Version 2.4 and one can't easily view arrays.
--
Rick
_______________________________________________
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