Viewing values within allocated memory in C with XCode debugger
Viewing values within allocated memory in C with XCode debugger
- Subject: Viewing values within allocated memory in C with XCode debugger
- From: Peter Wagner <email@hidden>
- Date: Thu, 09 Aug 2012 19:07:23 -0400
I am a longtime CodeWarrior programmer in C and C++. I have had real problems debugging my code in XCode: in particular, I cannot find a way to see values with arrays/matrices for which memory/dimensions were dynamically allocated in the program. Suppose I create a vector v:
int *v = (int*)malloc(length * sizeof (int));
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]?
(In CodeWarrior, command-a would pull up an entire allocated vector/matrix and let you look at any values within any particular cell.)
Peter ------------------------------------------------------------------ Peter J. 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