• 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 arrays in the debugger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Viewing arrays in the debugger?


  • Subject: Viewing arrays in the debugger?
  • From: Quinn Dunki <email@hidden>
  • Date: Sun, 19 Sep 2004 14:13:50 -0700

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


  • Follow-Ups:
    • Re: Viewing arrays in the debugger?
      • From: Jim Ingham <email@hidden>
    • Re: Viewing arrays in the debugger?
      • From: Dallas Hockley <email@hidden>
  • Prev by Date: Re: Why does SCM have to be so ....... hard?
  • Next by Date: custom build rule dependency
  • Previous by thread: Re: how do I invoke the target editor?
  • Next by thread: Re: Viewing arrays in the debugger?
  • Index(es):
    • Date
    • Thread