For displaying Container types more conveniently when debugging in Visual Studio, I created a very very rudimentary .natvis file:
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="Corrade::Containers::Array<*>">
<DisplayString>{{ size={_size} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>_size</Size>
<ValuePointer>_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="Corrade::Containers::ArrayView<*>">
<DisplayString>{{ size={_size} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>_size</Size>
<ValuePointer>_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>
Make sure to add it to your CMake project's sources so that Visual Studio picks it up.
Also, see the Documentation of NatVis.
For displaying Container types more conveniently when debugging in Visual Studio, I created a very very rudimentary .natvis file:
Make sure to add it to your CMake project's sources so that Visual Studio picks it up.
Also, see the Documentation of NatVis.