Update MSVS debug visualisers

Remove autoexp.inc, this format is no longer supported by MSVC.

Merge wxWidgets.2013.natvis with wxWidgets.natvis.

Remove wxVector<> visualizer as it's not used any more and is just a
synonym for std::vector<> now.
This commit is contained in:
PB 2022-10-11 18:17:12 +02:00 committed by Vadim Zeitlin
parent 5cfc89c10b
commit 333a663c70
3 changed files with 9 additions and 49 deletions

View file

@ -1,16 +0,0 @@
; This is a fragment that is supposed to be pasted into your autoexp.dat file
; found somewhere under MSVS installation directory (its exact location depends
; MSVS version so the simplest thing to do is to just search for it there).
[AutoExpand]
wxPoint=<x>,<y>
wxSize=<x>*<y>
wxRect=<x>,<y> <width>*<height>
wxLongLong=<m_ll>
wxString=<m_impl>
[Visualizer]
wxDateTime{
preview (#if ($e.IsValid()) ([wxDumpDate(&($e)),s]) #else (#("NIL")))
}

View file

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains visualizers for Visual Studio 2013+ debugger.
It should be copied into the %USERPROFILE%\My Documents\Visual Studio 2013\Visualizers
directory (or the corresponding location for newer versions) in addition to
wxWidgets.natvis which defines visualizers that also work with MSVS 2012.
The new features in MSVS 2013 are described in details here:
http://blogs.msdn.com/b/vcblog/archive/2013/06/28/using-visual-studio-2013-to-write-maintainable-native-visualizations-natvis.aspx
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="wxWindow">
<DisplayString>$(Type) HWND={m_hWnd,x}</DisplayString>
</Type>
</AutoVisualizer>

View file

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains visualizers for Visual Studio 2012+ debugger.
It should be copied into the %USERPROFILE%\My Documents\Visual Studio 2012\Visualizers\
directory (or the corresponding location for newer versions, e.g. ...2013\Visualizers).
This file contains visualizers for Visual Studio debugger.
It should be copied into the %USERPROFILE%\My Documents\Visual Studio 2015\Visualizers\
directory (or the corresponding location for newer versions, e.g. ...2017\Visualizers).
More information can be found at https://learn.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects
Introductory reference for the format:
http://blogs.msdn.com/b/vcblog/archive/2012/07/12/10329460.aspx
http://code.msdn.microsoft.com/windowsdesktop/Writing-type-visualizers-2eae77a2#content
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- We want to avoid showing 'L' before the string, this is useless and
@ -62,6 +61,10 @@ http://code.msdn.microsoft.com/windowsdesktop/Writing-type-visualizers-2eae77a2#
</Expand>
</Type>
<Type Name="wxWindow">
<DisplayString>$(Type) HWND={m_hWnd,x}</DisplayString>
</Type>
<!--
Defining visualizer for wxListBase is not really useful, so do it for
the most commonly used "concrete" list type.
@ -79,15 +82,4 @@ http://code.msdn.microsoft.com/windowsdesktop/Writing-type-visualizers-2eae77a2#
</Expand>
</Type>
<Type Name="wxVector&lt;*&gt;">
<DisplayString>size={m_size}</DisplayString>
<Expand>
<Item Name="[size]">m_size</Item>
<Item Name="[capacity]">m_capacity</Item>
<ArrayItems>
<Size>m_size</Size>
<ValuePointer>m_values</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>