• 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 values within allocated memory in C with XCode debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing values within allocated memory in C with XCode debugger


  • Subject: Re: Viewing values within allocated memory in C with XCode debugger
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 09 Aug 2012 16:12:54 -0700


On Aug 9, 2012, at 4:07 PM, Peter Wagner <email@hidden> wrote:

While coding, I discover that there is some bug, and that some element in v has an impossible value.  How can I get X-Code dubugger to show me the value of v[1] or v[100] or any v[x]?

print v[1]
print v[100]
print v[x]

The debugger command line understands a surprisingly large amount of C syntax. (I'm not sure how much C++ it knows.)

Or you can right-click on 'v' in the variable list (the left pane of the debugger) and choose one of the commands to view memory — one of them shows the contents of v itself, the other the location that v points to.

—Jens
 _______________________________________________
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 values within allocated memory in C with XCode debugger (From: Peter Wagner <email@hidden>)

  • Prev by Date: Viewing values within allocated memory in C with XCode debugger
  • Next by Date: Xcode 4.4.1 on Lion now same as ML?
  • Previous by thread: Viewing values within allocated memory in C with XCode debugger
  • Next by thread: Xcode 4.4.1 on Lion now same as ML?
  • Index(es):
    • Date
    • Thread