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. 寻找视觉工作室的托管vcs
- 3. 扩展视觉工作室
- 4. 绿色视觉工作室?
- 5. 没有视觉工作室
- 6. 使视觉工作室在'='
- 7. XML xpath视觉工作室
- 8. 在视觉工作室2012
- 9. Natvis:可视化在工具提示中工作,不在监视窗口
- 10. 视觉工作室 - TabControl.TabPages.Insert不工作
- 11. 寻找超过常规视觉工作室“调用栈”
- 12. xliff和视觉工作室 - 可能吗?
- 13. python工具视觉工作室 - 步入不工作
- 14. 视觉工作室设计视图
- 15. 视觉工作室2008 Sp1上的标准工具盒揭秘?
- 16. mvvm-light工具包崩溃的视觉工作室
- 17. 游戏制作工作室视觉bug
- 18. 如何找到视觉工作室正在寻找组装参考的位置
- 19. 使用的DirectX与视觉工作室
- 20. 已修改的视觉工作室行
- 21. 视觉工作室怪异的行为
- 22. 的.Net没有视觉工作室
- 23. 视觉工作室2013工具箱缺失标准
- 24. 视觉工作室布局和工具栏全部更改
- 25. 视觉工作室评论生成工具
- 26. OrientDB工作室的可视化图形
- 27. angular2与视觉工作室2015
- 28. 视觉工作室设置css
- 29. 替代视觉工作室2010
- 30. XNA 4.0视觉工作室2010错误