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:
parent
5cfc89c10b
commit
333a663c70
3 changed files with 9 additions and 49 deletions
|
|
@ -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")))
|
|
||||||
}
|
|
||||||
|
|
@ -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>
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
This file contains visualizers for Visual Studio 2012+ debugger.
|
This file contains visualizers for Visual Studio debugger.
|
||||||
It should be copied into the %USERPROFILE%\My Documents\Visual Studio 2012\Visualizers\
|
It should be copied into the %USERPROFILE%\My Documents\Visual Studio 2015\Visualizers\
|
||||||
directory (or the corresponding location for newer versions, e.g. ...2013\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">
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
<!-- We want to avoid showing 'L' before the string, this is useless and
|
<!-- 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>
|
</Expand>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="wxWindow">
|
||||||
|
<DisplayString>$(Type) HWND={m_hWnd,x}</DisplayString>
|
||||||
|
</Type>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Defining visualizer for wxListBase is not really useful, so do it for
|
Defining visualizer for wxListBase is not really useful, so do it for
|
||||||
the most commonly used "concrete" list type.
|
the most commonly used "concrete" list type.
|
||||||
|
|
@ -79,15 +82,4 @@ http://code.msdn.microsoft.com/windowsdesktop/Writing-type-visualizers-2eae77a2#
|
||||||
</Expand>
|
</Expand>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
||||||
<Type Name="wxVector<*>">
|
|
||||||
<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>
|
</AutoVisualizer>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue