there is a problem, I threw in a simple code:
#include <iostream>
using namespace std;
int main() {
int size = 10;
int* arr = new int[size];
for (int i = 0; i < size; i++) {
arr[i] = rand() % 100;
}
}
I use gdb debugger but it doesn’t seem to print the whole array, only the value of the first element:
Of course I read and understood that it turns out that you can simply write something like arr, 10
in the debug console and all the elements will be displayed, but this is not very convenient, especially when the array is not one-dimensional.
Tell me, is there any way to display this unfortunate array in the “variables” window?
I tried to install lldb but either my hands are crooked or it also suffers from the same problem and my task was not solved
6