Skip to content

Commit 6d66e0e

Browse files
committed
显示优化
1 parent ecbaebe commit 6d66e0e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

compile/lua54.natvis

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
33
<Type Name="lua_State">
4-
<DisplayString>[thread top=]{top.p-(ci-&gt;func.p+1)}</DisplayString>
4+
<DisplayString>[stack top={top.p-(ci-&gt;func.p+1), d}]</DisplayString>
55
<Expand>
66
<Item Name="[stack top]">top.p-(ci-&gt;func.p+1)</Item>
77
<Item Name="[call]" Condition="ci->func.p->val.tt_!=0">ci-&gt;func.p</Item>
8-
<Item Name="[callinfo]">"------------------------------------"</Item>
8+
<Synthetic Name="[callinfo]">
9+
<DisplayString>------------------------------------</DisplayString>
10+
</Synthetic>
911
<LinkedListItems>
1012
<HeadPointer>ci</HeadPointer>
1113
<NextPointer>previous</NextPointer>
@@ -43,10 +45,10 @@
4345
</Expand>
4446
</Type>
4547
<Type Name="CClosure">
46-
<DisplayString>{f}</DisplayString>
48+
<DisplayString>{f, na}</DisplayString>
4749
</Type>
4850
<Type Name="LClosure">
49-
<DisplayString>{p}</DisplayString>
51+
<DisplayString>{p, na}</DisplayString>
5052
<Expand>
5153
<ExpandedItem>p</ExpandedItem>
5254
</Expand>
@@ -63,6 +65,6 @@
6365
</Expand>
6466
</Type>
6567
<Type Name="TString">
66-
<DisplayString>{(char *)(this)+8+sizeof(double)*2, na}</DisplayString>
68+
<DisplayString>{(char *)(this)+8+sizeof(double)*2, sb}</DisplayString>
6769
</Type>
6870
</AutoVisualizer>

0 commit comments

Comments
 (0)