title: Autoexp.dat and Static Array
body: <p>I am currently creating a debug visualizer for my class in Visual Studio 2010 and Visual Studio 2012 with autoexp.dat and natvis. Everything work fine with natvis, but I have 1 problem with autoexp.dat.</p>
  
  <p>When I create a static array of my class, the debugger display my array as 1 instance of my class and not like an array of my class. This only occur if I write the children section.</p>
  
  <p>My autoexp.dat :</p>
  
  <pre><code>TestA{
      preview( #("a=", $e.m_a, " b=",$e.m_b) )
  
      children(#(#(a : $e.m_a),#(b : $e.m_b)))
  }
  </code></pre>
  
  <p>And my quick program to show the problem :</p>
  
  <pre><code>class TestA
  {
  public:
      TestA():m_a(0),m_b(0){}
      TestA(int a, int b):m_a(a),m_b(b){}
  private :
      int m_a;
      int m_b;
  };
  
  int main()
  {
      TestA test[10];
  
      for (int i = 0; i &lt; 10; ++i)
      {
          test[i] = TestA(i,i);
      }
  
      return 0;
  }
  </code></pre>
  
  <p>Here is what I see in the debugger with the children section and without(sorry I can't post image).</p>
  
  <p>With : <a href="http://i.stack.imgur.com/LIhEv.jpg" rel="nofollow">http://i.stack.imgur.com/LIhEv.jpg</a>
  Without : <a href="http://i.stack.imgur.com/QpsNu.jpg" rel="nofollow">http://i.stack.imgur.com/QpsNu.jpg</a></p>
  
  <p>I would like to see all my array like without the children section but with a/b and not m_a/m_b.</p>
  
  <p>Thank you in advance</p>