This must not be a problem but it is somehow. I have a pointer to a data structure:
Qt Code:
  1. struct pagelist_t
  2. {
  3. pointer;
  4. int;
  5. };
  6.  
  7. ...
  8.  
  9. pagelist_t *trt;
To copy to clipboard, switch view to plain text mode 

The pointer is allocated
Qt Code:
  1. trt = new pagelist_t[somesize];
To copy to clipboard, switch view to plain text mode 
and initialized.

Now, I want to see (using a debugger) that trt is initialized correctly. So start a debugger and get baffled: there is no option in the debugger "display as array". Dereferencing the pointer shows only the first item in the array but this is not enough. I tried the web and found that "this is difficult" followed by mere excuses that the debugger cannot know the size of the array (correct but it should be you who is specifying the array bounds, debuggers can process such request for sure, my own experience not only with GDB) and hints that you should make the pointer watched, etc.

But where is the "watches" window? In the Debug menu is "Add to watch window" grayed. The Watch window is nowhere in sight and "Select widget to watch seems to do nothing. Well, I do not watch a widget but a pointer. The end. Is there a possibility to see elements 0..10 of trt?