c++ - How to add debug watch for dynamically allocated array in CodeLite? -
i check content of elements in array, while debugging program. when add watch dynamically allocated array can see address pointer?
is there way watch content of dynamically allocated array? went through below post, solution didn't seem work codelite. guess because of different debugger.
how display dynamically allocated array in visual studio debugger?
i've had success using casting style syntax watch value:
(int[10]*)a
this shows array values once expanded in watch window. declaration of a
in code was:
int *a = new int[10];
here watch window:
Comments
Post a Comment