Re: Viewing values within allocated memory in C with XCode debugger
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