vs2019 Jsoncpp 可视化调试配置文件(natvis)

				
					<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">

	<Type Name="Json::Value::CZString">
		<DisplayString Condition="cstr_ == 0">{index_}</DisplayString>
		<DisplayString>{cstr_,sb}</DisplayString>
	</Type>


	<Type Name="std::map&lt;Json::Value::CZString,Json::Value,*&gt;">
		<DisplayString>{{ size={_Mypair._Myval2._Myval2._Mysize} }}</DisplayString>
		<Expand>
			<TreeItems>
				<Size>_Mypair._Myval2._Myval2._Mysize</Size>
				<HeadPointer>_Mypair._Myval2._Myval2._Myhead-&gt;_Parent</HeadPointer>
				<LeftPointer>_Left</LeftPointer>
				<RightPointer>_Right</RightPointer>
				<ValueNode Condition="_Isnil == 0" Name="{_Myval.first}">_Myval,view(MapHelper)</ValueNode>
			</TreeItems>
		</Expand>
	</Type>


	<Type Name="Json::Value">
		<DisplayString Condition="bits_.value_type_ == 0">null</DisplayString>
		<DisplayString Condition="bits_.value_type_ == 1">{value_.int_}</DisplayString>
		<DisplayString Condition="bits_.value_type_ == 2">{value_.uint_}</DisplayString>
		<DisplayString Condition="bits_.value_type_ == 3">{value_.real_}</DisplayString>
		<DisplayString Condition="bits_.value_type_ == 4">{value_.string_+4,s}</DisplayString>
		<DisplayString Condition="bits_.value_type_ == 5">{value_.bool_}</DisplayString>
		<DisplayString Condition="bits_.value_type_ == 6">Array (size={value_.map_-&gt;_Mypair._Myval2._Myval2._Mysize})</DisplayString>
		<DisplayString Condition="bits_.value_type_ == 7">Object (size={value_.map_-&gt;_Mypair._Myval2._Myval2._Mysize})</DisplayString>
		<DisplayString >unknown</DisplayString>

		<Expand>
			<ExpandedItem Condition="bits_.value_type_ == 6">*(value_.map_)</ExpandedItem>
			<ExpandedItem Condition="bits_.value_type_ == 7">*(value_.map_)</ExpandedItem>
		</Expand>
	</Type>


	<Type Name="std::pair&lt;Json::Value::CZString const, Json::Value&gt;" IncludeView="MapHelper">
		<DisplayString>{second}</DisplayString>
		<Expand>
			<ExpandedItem Condition="second.bits_.value_type_ == 6">second</ExpandedItem>
			<ExpandedItem Condition="second.bits_.value_type_ == 7">second</ExpandedItem>
		</Expand>
	</Type>


</AutoVisualizer>

				
			
BOSS

发表评论

PHP Code Snippets Powered By : XYZScripts.com