Im_too_old_for_this_shit's blog

By Im_too_old_for_this_shit, 10 years ago, In English

How to see the content of dynamic array of objects in Microsoft Visual Studio (2010) on the debug watch window. For example.

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Type p, n and it will display {p[0], p[1], ..., p[n-1]} .

  • »
    »
    10 years ago, # ^ |
    Rev. 3   Vote: I like it 0 Vote: I do not like it

    When the array is an array of structs it gets error.

    • »
      »
      »
      10 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      It works in VS 2013.

      • »
        »
        »
        »
        10 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Yes, but I need 2010 one. Thank you anyway. Isn't there any other way to do this which would work for 2010 ?

        • »
          »
          »
          »
          »
          10 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          You are welcome. I think it doesn't work only in VS 2010(considering versions 2008, 10, 12, 13).

          BTW, It seems you have edited your question and mentioned the version ;) .