mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 01:44:28 +08:00
...
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
|
||||
<Type Name="vl::ObjectString<wchar_t>">
|
||||
<DisplayString>{{ size={length}, buffer={buffer+start,su} }}</DisplayString>
|
||||
<StringView>buffer+start,su</StringView>
|
||||
<Expand>
|
||||
<Item Name="[size]">length</Item>
|
||||
<ArrayItems>
|
||||
<Size>length</Size>
|
||||
<ValuePointer>buffer+start</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="vl::ObjectString<char>">
|
||||
<DisplayString>{{ size={length}, buffer={buffer+start,s} }}</DisplayString>
|
||||
<StringView>buffer+start,s</StringView>
|
||||
<Expand>
|
||||
<Item Name="[size]">length</Item>
|
||||
<ArrayItems>
|
||||
<Size>length</Size>
|
||||
<ValuePointer>buffer+start</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="vl::collections::List<*>">
|
||||
<AlternativeType Name="vl::collections::SortedList<*>"/>
|
||||
<AlternativeType Name="vl::collections::Array<*>"/>
|
||||
<DisplayString>{{ size={count} }}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[size]">count</Item>
|
||||
<ArrayItems>
|
||||
<Size>count</Size>
|
||||
<ValuePointer>($T1*)buffer</ValuePointer>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="vl::collections::Dictionary<*,*>">
|
||||
<AlternativeType Name="vl::collections::Group<*,*>"/>
|
||||
<DisplayString>{{ size={keys.count} }}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[size]">keys.count</Item>
|
||||
<Item Name="Keys">keys</Item>
|
||||
<Item Name="Values">values</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="vl::Ptr<*>">
|
||||
<AlternativeType Name="vl::ComPtr<*>"/>
|
||||
<DisplayString Condition="reference == 0">[empty]</DisplayString>
|
||||
<DisplayString Condition="reference != 0">{*reference}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem Condition="reference != 0">reference</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="vl::Lazy<*>">
|
||||
<DisplayString Condition="internalValue.reference == 0">[empty]</DisplayString>
|
||||
<DisplayString Condition="internalValue.reference != 0 && internalValue.reference->evaluated == false">[not evaluated]</DisplayString>
|
||||
<DisplayString Condition="internalValue.reference != 0 && internalValue.reference->evaluated == true">{internalValue.reference->value}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem Condition="internalValue.reference != 0 && internalValue.reference->evaluated == true">internalValue.reference->value</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="vl::ObjectBox<*>">
|
||||
<DisplayString>{object}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem>object</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="vl::Nullable<*>">
|
||||
<DisplayString Condition="object == 0">[empty]</DisplayString>
|
||||
<DisplayString Condition="object != 0">{*object}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem Condition="object != 0">*object</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
</AutoVisualizer>
|
||||
@@ -7,6 +7,12 @@ Release folder of all projects.
|
||||
|
||||
Download code from [public releases](https://github.com/vczh-libraries/Release/releases) to get the latest stable release. Code from this repo is also usable but I don't make any promise. I will only make a new release when I think the code is ready to update.
|
||||
|
||||
## Visual Studio Extension
|
||||
|
||||
Copy [Vlpp.natvis](https://github.com/vczh-libraries/Release/blob/master/Import/Vlpp.natvis) to Visual Studio's visualizers folder.
|
||||
|
||||
For example, VS2019's default visualizers folder will be **C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Packages\Debugger\Visualizers**.
|
||||
|
||||
## Content of This Project
|
||||
|
||||
- **Import** Gaclib source code
|
||||
|
||||
Reference in New Issue
Block a user