Edit 2: If it's not possible, I will award the bounty to an answer that proves it (I mean provides some credible sources that back the claim that it's not possible).
Let's say I have a pointer to 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 the various suggestions from the answers from View Array contents in QtCreator and View Array contents in Qt Creator debugger, however they didn't work for me:
I assume this is because I'm on CDB, while the other 2 questions are for GDB. Is it possible to achieve the same for CDB?
Edit: I forgot to mention, but p,3
also doesn't work.
(int (&) [3])p
– LabannaheERROR: Unable to add watch item "watch.1"/"(int (&) [3])p": Cannot add symbol '(int (&) [3])p': DEBUG_ANY_ID was returned as symbol index by AddSymbol.
– Narra