• 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
Viewing A Pointer As An Array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Viewing A Pointer As An Array


  • Subject: Viewing A Pointer As An Array
  • From: Nick Nallick <email@hidden>
  • Date: Fri, 16 May 2008 10:32:42 -0600

I've spent way to much time this morning getting gdb to laboriously print several hundred structures from an array (hitting return after every eight or so) and once again I find myself longing for a way to tell the Xcode debugger my pointer is really an array. This seems to come up every so often in the list archive and it still tempts me to try to get CodeWarrior to build my code. For example, here's a request from a couple years ago that could use a bump...

On Apr 17, 2006, at 12:54 PM, Skip Haughay wrote:

I have recently moved from CodeWarrior to XCode, and while the environment of XCode is quite nice for the most part, there are some glaring omissions. One thing which I have been quite unable to figure out how to do is to display an array within the debugger. In CodeWarrior, I could click on, say, a variable defined as a pointer to an integer. I could view this as hex, view this as decimal, OR view this pointer as an array... the debugger would show me a window with a list of array items if interpreting that pointer as the array ptr.

Is there ANY way to do this in XCode? It would be terribly inconvenient and slow to have to manually peek at each item offset from my pointer each time I want to examine an array's values.

Right now Xcode doesn't have the ability to interrogate the array and show the items inside :( We have gotten many request for better inspection of container-style classes (many on the team want it too) and we want to provide this in a future version of Xcode.


Scott


_______________________________________________
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


  • Follow-Ups:
    • Re: Viewing A Pointer As An Array
      • From: Rick Sustek <email@hidden>
  • Prev by Date: Re: (objc_warning) is valid for ObjC/ObjC++ but not for C
  • Next by Date: Stream problems/too many open files
  • Previous by thread: IB: Connections Inspector, extra spaces, no horizontal resize
  • Next by thread: Re: Viewing A Pointer As An Array
  • Index(es):
    • Date
    • Thread