Saturday, 15 January 2011

c++ - Display pointer as array in Qt Creator with CDB for debugger -


Edit 2: If this is not possible, then I will award reward for that answer Which proves this (I mean there are some reliable sources that return the claim that this is not possible).


Let me assume that I have an indicator for an array, for example:

  int ARR [3]; Int * p = new int [3];  

I can see all the elements of arr , but only the first element of p . How can I see all 3 elements of p ?

I tried various suggestions from the answers and although, they did not work for me:

I believe this because I am on CDB, while there are other 2 questions for GDB, it is possible to achieve the same for CDB ?

Edit: I forgot to mention, but p, 3 does not work either. view-> local and expressions)

 

( It works fine in Qt Creator 3.2.1 based on QT 5.3.2 (GCC 4.9.2, 64bit), 10 May, 2013 (10) To 17:53:15.


No comments:

Post a Comment