Re: Pointers and arrays
Re: Pointers and arrays
- Subject: Re: Pointers and arrays
- From: "Justin C. Walker" <email@hidden>
- Date: Mon, 16 Oct 2006 09:28:59 -0700
On Oct 16, 2006, at 09:20 , Michael wrote:
I can't tell if you understand the issue yet. You are not passing
the array to the subfunction; you are passing a pointer to the
array to the subfunction.
Hi Justin,
I get that part...and have gotten that part from the beginning. I
also understand that the compiler (not the debugger...my mistake)
is responsible for this.
But, lets say I define an array in "main". "Main sub_function" is
where all the manipulation occurs, which I want to follow in the
debugger. The only way that I do this now, is to have to repeatedly
click the "main" function in the debugger, as all I see in the
subfunction is the pointer to the array. Is there a way of doing
this without having to stop each time and go back to "main"...which
is all I am asking.
Glad we got that cleared up :-}
I'm not the expert in the GUI (being an unrepentant command-line
user), but Xcode has a "view memory as" feature (Debug -> Variables
View -> View Memory As...); that may help. An alternative is the
memory browser (Debug -> Tools -> Memory Browser); since your array
isn't wandering around in memory, you may be able to use this to view
the content without a lot of extra keystrokes and mousing around.
Others who spend more time with the Xcode debugger may have more
helpful comments.
Justin
--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email
_______________________________________________
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