If I have a pointer to some type and give the pointer address of an array, is it possible to display all of the elements instead of the first one only?
For example:
Rectangle* baz = new Rectangle[2] { {2,5}, {3,6} };
displays

both via hovering over the baz variable and in VARIABLES->Locals section.
I think that issue #585 is different (I don't understand the problem of that issue).
@salda which OS and debugger are you using?
I'm not on the cpptools team, but, in my opinion, if this works like Visual Studio, then everything is normal.
To view the pointer as a table, you should add a new watched variable under the Debug panel like so:
(Rectangle[2]) baz
See image below.

Windows 10 with GDB.
@salda Does what @AnthonyD973 suggested work for you in the watch window? I know the hover won't work. Unfortunately this would require work on gdb's side to allow visualization OR a custom visualizer (aka natvis). I'll mark it as a feature request in the meantime that we can investigate for a future release.
(int[5]) arr or arr,5 None of them works for me.
What works is *arr@5.
have a look.

OS:Linux VSC Version:1.23.1
debugger PHP7 shows only first element of zend_string


sos...
how can i do display all?

vscode VS lldb

lldb can shows all
Can anyone please tell how to use watch window
@kulalsk2 While debugging, in the left pane you will see an area for Watch under Variables.

In there you can type any expression want to look at.

You can look at variables, you can try to see int variable + 1 or see array[index]
Thanks a lot sir
(int[5]) arrorarr,5None of them works for me.
The former usually works in gdb, the latter is not implemented yet, see microsoft/MIEngine#1031.
What works is
*arr@5.
Interesting.
Most helpful comment
(int[5]) arrorarr,5None of them works for me.What works is
*arr@5.have a look.

OS:Linux VSC Version:1.23.1