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?

enter image description here

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:

enter image description here


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -