title: Viewing a dynamically-allocated array with the Xcode debugger?
body: <p>Let's say I have an array in C++:</p>
  
  <pre><code>double* velocity = new double[100];
  </code></pre>
  
  <p>Using the GDB command line, I can view this array with the command:</p>
  
  <pre><code>&gt; print *velocity @ 100
  </code></pre>
  
  <p>and it will print a nicely-formatted list of all the double values inside the array.</p>
  
  <p>However, when using the Xcode debugger, the most it will do is treat this as a pointer to a single double value, and display velocity[0] in the variable list.</p>
  
  <p>This makes it a real PITA to debug programs that contain large dynamically allocated array.  There has got to be some way to tell Xcode "This is a pointer to an array of length 100", and have it display the thing as such.  Anyone know what it is?</p>