From fac0f76b7a7b4bd19e3e4ecc4ac98619daea3784 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Tue, 12 Mar 2019 08:59:30 +0100 Subject: Fixed & improved Visual Studio custom debugger visualization --- platform/windows/godot.natvis | 147 +++++++++++++++++++++++------------------- 1 file changed, 82 insertions(+), 65 deletions(-) diff --git a/platform/windows/godot.natvis b/platform/windows/godot.natvis index 01963035a1..55c83c3f3c 100644 --- a/platform/windows/godot.natvis +++ b/platform/windows/godot.natvis @@ -2,92 +2,109 @@ - (_cowdata && _cowdata->_ptr) ? (((const unsigned int *)(_cowdata->_ptr))[-1]) : 0 + _cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0 - (_cowdata && _cowdata->_ptr) ? (((const unsigned int *)(_cowdata->_ptr))[-1]) : 0 - (_cowdata) ? (_cowdata->_ptr) : 0 + _cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0 + _cowdata._ptr - alloc ? (alloc->size / sizeof($T1)) : 0 + alloc ? (alloc->size / sizeof($T1)) : 0 alloc ? (alloc->size / sizeof($T1)) : 0 alloc ? (($T1 *)alloc->mem) : 0 + + + + _data ? (_data->size_cache) : 0 + + _data ? (_data->size_cache) : 0 + _data->first + next_ptr + value + + + - nil - {_data._bool} - {_data._int} - {_data._real} - {_data._transform2d} - {_data._aabb} - {_data._basis} - {_data._transform} - {*(Array *)_data._mem} - "" - {((String *)(&_data._mem[0]))->_cowdata._ptr,su} - {*(Vector2 *)_data._mem} - {*(Rect2 *)_data._mem} - {*(Vector3 *)_data._mem} - {*(Plane *)_data._mem} - {*(Quat *)_data._mem} - {*(Color *)_data._mem} - {*(NodePath *)_data._mem} - {*(RID *)_data._mem} - {*(Object *)_data._mem} - {*(Dictionary *)_data._mem} - {*(Array *)_data._mem} - {*(PoolByteArray *)_data._mem} - {*(PoolIntArray *)_data._mem} - {*(PoolRealArray *)_data._mem} - {*(PoolStringArray *)_data._mem} - {*(PoolVector2Array *)_data._mem} - {*(PoolVector3Array *)_data._mem} - {*(PoolColorArray *)_data._mem} - - ((String *)(&_data._mem[0]))->_cowdata._ptr,su + nil + {_data._bool} + {_data._int} + {_data._real} + {_data._transform2d} + {_data._aabb} + {_data._basis} + {_data._transform} + {*(String *)_data._mem} + {*(Vector2 *)_data._mem} + {*(Rect2 *)_data._mem} + {*(Vector3 *)_data._mem} + {*(Plane *)_data._mem} + {*(Quat *)_data._mem} + {*(Color *)_data._mem} + {*(NodePath *)_data._mem} + {*(RID *)_data._mem} + {*(Object *)_data._mem} + {*(Dictionary *)_data._mem} + {*(Array *)_data._mem} + {*(PoolByteArray *)_data._mem} + {*(PoolIntArray *)_data._mem} + {*(PoolRealArray *)_data._mem} + {*(PoolStringArray *)_data._mem} + {*(PoolVector2Array *)_data._mem} + {*(PoolVector3Array *)_data._mem} + {*(PoolColorArray *)_data._mem} + ((String *)(_data._mem))->_cowdata._ptr,su + - _data._bool - _data._int - _data._real - _data._transform2d - _data._aabb - _data._basis - _data._transform - *(Array *)_data._mem - *(String *)_data._mem - *(Vector2 *)_data._mem - *(Rect2 *)_data._mem - *(Vector3 *)_data._mem - *(Plane *)_data._mem - *(Quat *)_data._mem - *(Color *)_data._mem - *(NodePath *)_data._mem - *(RID *)_data._mem - *(Object *)_data._mem - *(Dictionary *)_data._mem - *(Array *)_data._mem - *(PoolByteArray *)_data._mem - *(PoolIntArray *)_data._mem - *(PoolRealArray *)_data._mem - *(PoolStringArray *)_data._mem - *(PoolVector2Array *)_data._mem - *(PoolVector3Array *)_data._mem - *(PoolColorArray *)_data._mem + _data._bool + _data._int + _data._real + _data._transform2d + _data._aabb + _data._basis + _data._transform + *(String *)_data._mem + *(Vector2 *)_data._mem + *(Rect2 *)_data._mem + *(Vector3 *)_data._mem + *(Plane *)_data._mem + *(Quat *)_data._mem + *(Color *)_data._mem + *(NodePath *)_data._mem + *(RID *)_data._mem + *(Object *)_data._mem + *(Dictionary *)_data._mem + *(Array *)_data._mem + *(PoolByteArray *)_data._mem + *(PoolIntArray *)_data._mem + *(PoolRealArray *)_data._mem + *(PoolStringArray *)_data._mem + *(PoolVector2Array *)_data._mem + *(PoolVector3Array *)_data._mem + *(PoolColorArray *)_data._mem - empty - {this->_cowdata._ptr,su} - this->_cowdata._ptr,su + [empty] + {_cowdata._ptr,su} + _cowdata._ptr,su + + + + {_data->cname} + {_data->name,su} + [empty] + _data->cname + _data->name,su -- cgit v1.2.3