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

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

  • Follow-Ups:
    • Re: Viewing values within allocated memory in C with XCode debugger
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Over zealous autocomplete
  • Next by Date: Re: Viewing values within allocated memory in C with XCode debugger
  • Previous by thread: Re: Xcode-users Digest, Vol 9, Issue 377
  • Next by thread: Re: Viewing values within allocated memory in C with XCode debugger
  • Index(es):
    • Date
    • Thread