• 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: Viewing Pointer Contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing Pointer Contents


  • Subject: Re: Viewing Pointer Contents
  • From: Mark Wagner <email@hidden>
  • Date: Tue, 17 Jan 2006 09:54:20 -0800

On 1/17/06, Nick Nallick <email@hidden> wrote:
> In the Xcode debugger, how do I view the memory referenced by a
> pointer as common values.  Specifically if I have a pointer to a C or
> Pascal style string how do I get the debugger to show me this as a
> string?
>
> Also, if I have a pointer that happens to point to an array of
> elements, how do I see more than the first element?
>
> Basically I'm looking for equivalents to the CodeWarrior commands
> "View Array", "View As C String", and "View As Pascal String".

The only reliable method I've found is to bring up the debugger
console and type "print *my_var_name", possibly with a typecast.

--
Mark Wagner
 _______________________________________________
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: 
 >Viewing Pointer Contents (From: Nick Nallick <email@hidden>)

  • Prev by Date: RE: Distributed compiles with mixed x86/ppc?
  • Next by Date: Re: -O3 vs. -Os
  • Previous by thread: Viewing Pointer Contents
  • Next by thread: Distributed compiles with mixed x86/ppc?
  • Index(es):
    • Date
    • Thread