mercredi 30 juin 2021

VSCode visualize dynamic arrays in debugger

I am using VSCode for some C++ code.

With the following code:

int array [10] = {1};

I can visualize the entries of the array in the debugger:

enter image description here

However, when I dynamically allocate the array, with:

int* array = new int[10];

I get:

enter image description here

Is it possible to visualize the dynamic array as the one allocated with:

int array [10] = {1};

Aucun commentaire:

Enregistrer un commentaire