-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial addition of native visualizer, to improve debugging experienc…
…e. (#3906)
- Loading branch information
1 parent
6048c0a
commit c430a57
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
<Type Name="vcpkg::ErrorHolder<std::error_code>"> | ||
<DisplayString Condition="m_err._Myval!=0">{m_err}</DisplayString> | ||
<DisplayString Condition="m_err._Myval==0"></DisplayString> | ||
</Type> | ||
<Type Name="vcpkg::ErrorHolder<*>"> | ||
<DisplayString Condition="m_is_error==true">{m_err}</DisplayString> | ||
<DisplayString Condition="m_is_error==false"></DisplayString> | ||
</Type> | ||
<Type Name="vcpkg::ExpectedT<*,std::error_code>"> | ||
<DisplayString Condition="m_s.m_err._Myval==0">val: {m_t}</DisplayString> | ||
<DisplayString Condition="m_s.m_err._Myval!=0">err: {m_s}</DisplayString> | ||
</Type> | ||
<Type Name="vcpkg::ExpectedT<*,*>"> | ||
<DisplayString Condition="m_s.m_is_error==false">val: {m_t}</DisplayString> | ||
<DisplayString Condition="m_s.m_is_error==true">err: {m_s}</DisplayString> | ||
</Type> | ||
<Type Name="vcpkg::Optional<*>"> | ||
<DisplayString Condition="m_base.m_is_present==true">{m_base.m_t}</DisplayString> | ||
<DisplayString Condition="m_base.m_is_present==false">empty</DisplayString> | ||
</Type> | ||
<Type Name="vcpkg::TripletInstance"> | ||
<DisplayString>{*(std::string*)this}</DisplayString> | ||
</Type> | ||
<Type Name="vcpkg::Triplet"> | ||
<DisplayString>{m_instance}</DisplayString> | ||
</Type> | ||
<Type Name="vcpkg::StringLiteral"> | ||
<DisplayString>{m_cstr}</DisplayString> | ||
</Type> | ||
<Type Name="std::experimental::filesystem::v1::path"> | ||
<DisplayString>{_Mystr}</DisplayString> | ||
</Type> | ||
</AutoVisualizer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters