• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            IDE Debug Helpers

            https://wiki.qt.io/IDE_Debug_Helpers

            Qt Creator

            Qt Creator directly supports introspection of all Qt Containers and QObject derived classes for Qt 4 and Qt 5. User defined types can be supported in addition, see the Qt Creator documentation for details.

            LLDB

            There is an effort to introspect Qt types using LLDB at https://bitbucket.org/lukeworth/lldb-qt-formatters.

            KDevelop ships formatter scripts in its LLDB plugin for Qt types that can be used directly in plain LLDB. https://unlimitedcodeworks.xyz/blog/2016/08/20/gsoc-kdevelop-lldb-final-report/#using-data-formatter-scripts-outside-kdevelop

            MS visual studio QString & QByteArray expansions

            The new layout of QString in Qt 5 is hard to inspect using the debugger. The following code can be added to autoexp.dat (c:\program files(x86)\visual studio 9.0\common7\packages\debugger\autoexp.dat) You should add it to the [Visualizer] section, before the STL/ATL containers.

            ; Qt types QStringData{  preview ([(unsigned short*)$e.d + $e.offset,su])  stringview ([(unsigned short*)$e.d + $e.offset,sub]) } QString{  preview ([$e.d]) } QByteArrayData{  preview ([(unsigned char*)$e.d + $e.offset,s])  stringview ([(unsigned char*)$e.d + $e.offset,sb]) } QByteArray{  preview ([$e.d]) } 

            If all else fails you can always just add a watcher for

              (char*)str.d + str.d->offset,su 

            in the debugger, to see the contents of str.

            MS Visual Studio 2012

            There is a new way to visualize native type, see http://code.msdn.microsoft.com/Writing-type-visualizers-2eae77a2 for details.

            Ready-made .natvis files are included in the Visual Studio add-in.

            So we can visualize QString and some other types using qt5.natvis file (save to file: %USERPROFILE%\Documents\Visual Studio 2012\Visualizers\qt5.natvis)

            <?xml version="1.0" encoding="utf-8"?> <AutoVisualizer >  <Type Name="QString">  <DisplayString>{(char*)d + d->offset,su}</DisplayString>  </Type>  <Type Name="QtPrivate::RefCount">  <DisplayString>{atomic}</DisplayString>  </Type>  <Type Name="QBasicAtomicInteger<int>">  <DisplayString>{_q_value}</DisplayString>  </Type>  <Type Name="QTypedArrayData<'''>">  <DisplayString>{{Count = {size}}}</DisplayString>  <Expand>  <Item Name="[size]">size</Item>  <ArrayItems>  <Size>size</Size>  <ValuePointer>(iterator) ((char''')this + offset)</ValuePointer>  </ArrayItems>  </Expand>  </Type>  <Type Name="QByteArray">  <DisplayString>{*d}</DisplayString>  </Type>  <!— More Qt5 types… —>  </AutoVisualizer> 

            MS Visual Studio 2013

            The ".natvis" files introduced in MSVS2012 received some additional attention in MSVS2013:

            http://blogs.msdn.com/b/vcblog/archive/2013/06/28/using-visual-studio-2013-to-write-maintainable-native-visualizations-natvis.aspx

            posted on 2018-02-12 13:25 zmj 閱讀(560) 評論(0)  編輯 收藏 引用

            久久精品综合一区二区三区| 中文字幕无码久久精品青草| 久久er国产精品免费观看2| 久久精品视频免费| 久久婷婷五月综合色99啪ak| 久久久久久久久66精品片| 2021久久国自产拍精品| 国产精品无码久久四虎| 久久亚洲精品中文字幕| 精品久久人人妻人人做精品| 中文字幕乱码人妻无码久久| 国产成人久久精品二区三区| 亚洲а∨天堂久久精品| 亚洲国产成人久久精品影视| 久久久久99精品成人片牛牛影视| 亚洲精品国产美女久久久 | 国产成人精品久久亚洲高清不卡 | 伊人久久大香线蕉AV一区二区| 国产亚洲欧美成人久久片| 狠狠综合久久AV一区二区三区| 国产亚州精品女人久久久久久| 久久久久久久亚洲Av无码| 中文成人久久久久影院免费观看| 久久中文字幕一区二区| 波多野结衣中文字幕久久| 欧美亚洲国产精品久久| 久久久久久噜噜精品免费直播| 国产成人精品久久免费动漫| 国产亚洲美女精品久久久2020| 亚洲va久久久久| 人人妻久久人人澡人人爽人人精品| 国产成人久久777777| 精品欧美一区二区三区久久久| 青青青青久久精品国产h| 久久91综合国产91久久精品| 久久久久久久久久久久中文字幕| 中文字幕久久精品无码| 无码AV波多野结衣久久| 精品久久久久久中文字幕人妻最新| 日韩久久久久久中文人妻| 久久久久高潮毛片免费全部播放|