• 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: Pointers and arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Pointers and arrays (From: "Michael" <email@hidden>)
 >Re: Pointers and arrays (From: Laurence Harris <email@hidden>)
 >Re: Pointers and arrays (From: "Michael" <email@hidden>)
 >Re: Pointers and arrays (From: "Justin C. Walker" <email@hidden>)
 >Re: Pointers and arrays (From: Michael <email@hidden>)
 >Re: Pointers and arrays (From: "Justin C. Walker" <email@hidden>)
 >Re: Pointers and arrays (From: Michael <email@hidden>)

  • Prev by Date: Custom Data Formatters
  • Next by Date: Kagi question ...
  • Previous by thread: Re: Pointers and arrays
  • Next by thread: Re: Pointers and arrays
  • Index(es):
    • Date
    • Thread