Add Span<T> to C++ debugger natvis file

This commit is contained in:
Wojtek Figat
2023-04-14 15:01:40 +02:00
parent 89704bebe9
commit b4d20e128b

View File

@@ -221,4 +221,16 @@
<DisplayString Condition="Index != 0">Tag={TagsListDebug[Index - 1]}</DisplayString>
</Type>
<!-- Span<T> -->
<Type Name="Span&lt;*&gt;">
<DisplayString>{{ Length={_length} }}</DisplayString>
<Expand>
<Item Name="[Length]" ExcludeView="simple">_length</Item>
<ArrayItems Condition="_data != nullptr">
<Size>_length</Size>
<ValuePointer>_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>