Browse Source

Update natvis file to display Node class correctly in Visual Studio debugger

PouleyKetchoupp 5 years ago
parent
commit
2f511ff758
1 changed files with 8 additions and 0 deletions
  1. 8 0
      platform/windows/godot.natvis

+ 8 - 0
platform/windows/godot.natvis

@@ -143,4 +143,12 @@
 			<Item Name="alpha">a</Item>
 			<Item Name="alpha">a</Item>
 		</Expand>
 		</Expand>
 	</Type>
 	</Type>
+	
+	<Type Name="Node" Inheritable="false">
+		<Expand>
+			<Item Name="Object">(Object*)this</Item>
+			<Item Name="class_name">(StringName*)(((char*)this) + sizeof(Object))</Item>
+			<Item Name="data">(Node::Data*)(((char*)this) + sizeof(Object) + sizeof(StringName))</Item>
+		</Expand>
+	</Type>
 </AutoVisualizer>
 </AutoVisualizer>