Display wxString in more readable way in MSVS debug visualizer.
Use "sb" format specifier to avoid having L"..." around the string and then add just the quotes back manually. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c9220befc7
commit
35353e0ff0
@ -10,8 +10,14 @@ 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
|
||||
makes the display less readable. But we still do want to put quotes
|
||||
around the string to show that it is, in fact, a string. So we use
|
||||
"sb" qualifier to get rid of L"..." around the string and then add
|
||||
the quotes back. This also has a (nice) side effect of not doubling
|
||||
the backslashes inside the string. -->
|
||||
<Type Name="wxString">
|
||||
<DisplayString>{m_impl}</DisplayString>
|
||||
<DisplayString>"{m_impl,sb}"</DisplayString>
|
||||
<StringView>m_impl</StringView>
|
||||
</Type>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user