• <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)  編輯 收藏 引用

            久久久久亚洲AV成人网| 天天躁日日躁狠狠久久| 99久久国产综合精品成人影院| AV无码久久久久不卡蜜桃| 国产精品久久久久…| 久久综合成人网| 久久91综合国产91久久精品| 久久本道久久综合伊人| 浪潮AV色综合久久天堂| 欧美久久久久久精选9999| 人妻精品久久久久中文字幕69| 99久久久久| 久久夜色精品国产噜噜麻豆| 国产精品免费看久久久香蕉| 欧美日韩精品久久免费| 99久久国产综合精品网成人影院| 久久精品一区二区三区AV| 亚洲综合婷婷久久| 国产精品99久久免费观看| 久久只这里是精品66| 国产免费福利体检区久久| AV无码久久久久不卡网站下载| 伊人久久大香线蕉无码麻豆| 青青国产成人久久91网| 精品久久久久久久久免费影院| 激情五月综合综合久久69| 久久91精品国产91久久麻豆| 国产Av激情久久无码天堂| 欧美亚洲色综久久精品国产| 日产精品久久久久久久| 香蕉久久夜色精品国产尤物| 国产一区二区精品久久凹凸| 91久久精品国产成人久久| 久久久91精品国产一区二区三区| 久久久久成人精品无码中文字幕| 少妇熟女久久综合网色欲| 日本WV一本一道久久香蕉| 久久亚洲日韩看片无码| 亚洲国产另类久久久精品黑人| 久久人人爽人人爽人人片AV东京热 | 久久精品女人天堂AV麻|