-
Notifications
You must be signed in to change notification settings - Fork 48
/
Debug.natvis
34 lines (29 loc) · 965 Bytes
/
Debug.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="Array<*>">
<DisplayString>count={ count }</DisplayString>
<Expand>
<Item Name="allocator">allocator</Item>
<Item Name="capacity">capacity</Item>
<IndexListItems>
<Size>count</Size>
<ValueNode>*($T1 *)&buffer[$i * sizeof($T1)]</ValueNode>
</IndexListItems>
</Expand>
</Type>
<Type Name="String">
<DisplayString>{ length < SSO_SIZE ? buf : ptr, na }</DisplayString>
<Expand>
<Item Name="allocator">allocator</Item>
<Item Name="length">length</Item>
<Item Name="ptr">ptr, na</Item>
<Item Name="buf">buf, na</Item>
</Expand>
</Type>
<Type Name="StringView">
<DisplayString>{ start, sb } { end, sb }</DisplayString>
<Expand>
<Item Name="length">end - start</Item>
</Expand>
</Type>
</AutoVisualizer>