Natvis: are multi-dimensional arrays supported in gdb natvis?
See original GitHub issueHello, I have a natvis to visualize a 2D array that works perfectly in VisualStudio 2019. The same natvis file on VSCode 1.43.0 in Ubunutu, using gdb is not so happy.
Can you tell me if multi dimensional array capability is supposed to work using MIMode: gdb?
I’ll be glad to work up a full minimal-working-example if this is supposed to work, but for now, here’s the Type definition from my natvis that works on VStudio, but not on VSCode/gdb
<Type Name="PhysBAM::ARRAYS_ND_BASE<PhysBAM::VECTOR<*,2>>">
<DisplayString>{{ [({domain.min_corner.x},{domain.min_corner.y}),({domain.max_corner.x},{domain.max_corner.y})] }}</DisplayString>
<Expand>
<ArrayItems>
<Direction>Forward</Direction>
<Rank>2</Rank>
<Size>((int*)&counts)[$i]</Size>
<ValuePointer>($T1*)base_pointer</ValuePointer>
</ArrayItems>
</Expand>
</Type>
Thanks in advance! -Eric.
View in VSCode (not so good):
View in Visual Studio (very nice!):
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Natvis: Custom views for native objects
Learn how the Natvis framework provides custom views for native C++ objects ... how the multi-dimensional array indices should be unrolled.
Read more >Create custom views of C++ objects - Visual Studio
Use the Natvis framework to customize the way that Visual Studio displays native types in the debugger.
Read more >c++ - customize multi-dimension array debugging in visual ...
I am using arma Matrix and I would like to have a look at the value during debugging. So I add a natvis...
Read more >Newest 'natvis' Questions - Stack Overflow
I would like to provide some .natvis file based C++ custom view objects for Visual Studio Code. It is not working as expected...
Read more >Topic: Embedded Eigen Matrix Debugging Visualizer
Hi,. We have managed to reproduce the problem with the Eigen natvis file. It is caused by VisualGDB not supporting the $Tx syntax...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed with #1346
@paulmaybee Is this something that is supported in our MIEngine’s natvis implementation?