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

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -