Skip to content

Commit

Permalink
Added debugger visualization for Str, ZStr & TextFormatter (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadult authored Oct 5, 2024
1 parent b2f4557 commit 3661aea
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions windows/libfwk.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,41 @@
</Expand>
</Type>

<Type Name="fwk::ZStr">
<DisplayString>{m_data,[m_size]}</DisplayString>
<StringView>m_data,[m_size]</StringView>
<Expand>
<Item Name="[size]">m_size</Item>
<ArrayItems>
<Size>m_size</Size>
<ValuePointer>m_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>

<Type Name="fwk::Str">
<DisplayString>{m_data,[m_size]}</DisplayString>
<StringView>m_data,[m_size]</StringView>
<Expand>
<Item Name="[size]">m_size</Item>
<ArrayItems>
<Size>m_size</Size>
<ValuePointer>m_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>

<Type Name="fwk::TextFormatter">
<DisplayString>{m_data.m_base.data,[m_offset]}</DisplayString>
<StringView>m_data.m_base.data,[m_offset]</StringView>
<Expand>
<Item Name="[size]">m_offset</Item>
<Item Name="[capacity]">m_data.m_base.size</Item>
<ArrayItems>
<Size>m_offset</Size>
<ValuePointer>m_data.m_base.data</ValuePointer>
</ArrayItems>
</Expand>
</Type>

</AutoVisualizer>

0 comments on commit 3661aea

Please sign in to comment.