瀏覽代碼

Merge pull request #46402 from nekomatata/natvis-local-vector

Added LocalVector to Visual Studio debugger visualization
Rémi Verschelde 4 年之前
父節點
當前提交
2adacd751c
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      platform/windows/godot.natvis

+ 10 - 0
platform/windows/godot.natvis

@@ -10,6 +10,16 @@
 		</Expand>
 	</Type>
 
+	<Type Name="LocalVector&lt;*&gt;">
+		<Expand>
+			<Item Name="[size]">count</Item>
+			<ArrayItems>
+				<Size>count</Size>
+				<ValuePointer>data</ValuePointer>
+			</ArrayItems>
+		</Expand>
+	</Type>
+
 	<Type Name="List&lt;*&gt;">
 		<Expand>
 			<Item Name="[size]">_data ? (_data->size_cache) : 0</Item>