0
A
回答
1
编辑:我已将此文件添加到visualstudio-debugger repository on GitHub。
编辑2:此问题的其他两个答案已链接到其他github存储库(我没有签出)。
- @Dmitry Yastrebkov发布https://github.com/dmirys/jsoncpp.natvis
- @mojmir发布https://github.com/mojmir-svoboda/json.natvis
由于没有人来通过与:出于某种原因,他们被管理员(我不知道为什么),所以他们在这里删除答案(有些人认为这是由于某种原因在关于计算器的话题)我写了我自己的,在这里。使用风险自负。
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Json::Value - basic support -->
<Type Name="Json::Value">
<DisplayString Condition="type_ == 0">null</DisplayString>
<DisplayString Condition="type_ == 1">{value_.int_}</DisplayString>
<DisplayString Condition="type_ == 2">{value_.uint_}</DisplayString>
<DisplayString Condition="type_ == 3">{value_.real_}</DisplayString>
<DisplayString Condition="type_ == 4">{value_.string_,s8}</DisplayString>
<DisplayString Condition="type_ == 5">{value_.bool_}</DisplayString>
<DisplayString Condition="type_ == 6">array ({value_.map_->_Mysize})</DisplayString>
<DisplayString Condition="type_ == 7">object ({value_.map_->_Mysize})</DisplayString>
<DisplayString >Unknown Value type!</DisplayString>
<StringView Condition="type_ == 4">value_.string_,s8</StringView>
<Expand>
<ExpandedItem Condition="type_ == 6">*(value_.map_)</ExpandedItem>
<ExpandedItem Condition="type_ == 7">*(value_.map_)</ExpandedItem>
</Expand>
</Type>
<!-- Key/value pairs - used as values for objects and arrays (in arrays the key is null so don't display it) -->
<Type Name="std::pair<Json::Value::CZString const ,Json::Value>">
<DisplayString Condition="first.cstr_ != nullptr">{first.cstr_,s8}: {second}</DisplayString>
<DisplayString>{second}</DisplayString>
<Expand>
<Item Name="key" Condition="first.cstr_ != nullptr">first.cstr_</Item>
<Item Name="value" Condition="first.cstr_ != nullptr">second</Item>
<ExpandedItem>second</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>
相关问题
- 1. 视觉工作室
- 2. 视觉工作室
- 3. 寻找视觉工作室项目中的咒骂
- 4. 寻找视觉工作室的托管vcs
- 5. 在视觉工作室2012
- 6. 没有视觉工作室
- 7. XML xpath视觉工作室
- 8. 使视觉工作室在'='
- 9. 扩展视觉工作室
- 10. PHPMyAdmin视觉工作室c#
- 11. 绿色视觉工作室?
- 12. Natvis:可视化在工具提示中工作,不在监视窗口
- 13. 寻找超过常规视觉工作室“调用栈”
- 14. 视觉工作室 - TabControl.TabPages.Insert不工作
- 15. xliff和视觉工作室 - 可能吗?
- 16. python工具视觉工作室 - 步入不工作
- 17. ReSharper困惑我的视觉工作室 - 重置视觉工作室与默认
- 18. 视觉工作室设计视图
- 19. mvvm-light工具包崩溃的视觉工作室
- 20. asp.net网站项目中的MVC视觉工作室工具
- 21. 视觉工作室2008 Sp1上的标准工具盒揭秘?
- 22. 游戏制作工作室视觉bug
- 23. 如何找到视觉工作室正在寻找组装参考的位置
- 24. CUDA的“ThreadIdx”不被视觉工作室
- 25. 已修改的视觉工作室行
- 26. 的.Net没有视觉工作室
- 27. 修改视觉工作室的安装
- 28. 的Prolog用c#视觉工作室13
- 29. vb.net在新的视觉工作室compability
- 30. 使用的DirectX与视觉工作室