summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-29 11:03:50 +0100
committerGitHub <noreply@github.com>2019-10-29 11:03:50 +0100
commitf480d1c3b738d0f5be57fc35cc7f67743d5afa01 (patch)
treeec31e9ff5d642031d157ef460870628009d0bcbd /platform/windows
parent7b28f79f94bbe528f82e88df4e7403a34762f171 (diff)
parent2f511ff7586c5eb8cf9e5a15bfe7abf20f8c5e07 (diff)
Merge pull request #33157 from nekomatata/natvis-node
Update natvis file to display Node class correctly in Visual Studio debugger
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/godot.natvis8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/windows/godot.natvis b/platform/windows/godot.natvis
index 55c83c3f3c..593557cc69 100644
--- a/platform/windows/godot.natvis
+++ b/platform/windows/godot.natvis
@@ -143,4 +143,12 @@
<Item Name="alpha">a</Item>
</Expand>
</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>