• <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 閱讀(574) 評論(0)  編輯 收藏 引用

            久久亚洲综合色一区二区三区| 精品一区二区久久久久久久网站| 91精品国产综合久久四虎久久无码一级| 99久久精品国产麻豆| 久久亚洲天堂| 国内精品久久久人妻中文字幕| 国内精品久久久久久久久电影网| 久久久久久综合网天天| 91久久精品电影| 久久久久人妻精品一区二区三区| 精品乱码久久久久久夜夜嗨| 伊人久久大香线蕉综合影院首页| 国产精品欧美亚洲韩国日本久久| 模特私拍国产精品久久| 久久精品9988| 久久66热人妻偷产精品9| 国产69精品久久久久观看软件 | 久久精品国产亚洲AV无码麻豆 | 久久午夜福利电影| 国产成年无码久久久久毛片| 2021久久精品免费观看| 欧美久久天天综合香蕉伊| 日本福利片国产午夜久久| 久久人妻少妇嫩草AV无码专区| 久久精品综合网| 亚洲国产精品综合久久一线| 久久久WWW成人免费精品| 热久久这里只有精品| 国产精品久久毛片完整版| 久久综合给合久久国产免费| 99久久99久久精品国产片果冻 | 欧美精品乱码99久久蜜桃| 久久亚洲2019中文字幕| 久久综合久久鬼色| 四虎影视久久久免费| 久久亚洲天堂| 国产精品美女久久福利网站| 亚洲中文久久精品无码ww16| 影音先锋女人AV鲁色资源网久久| 人妻丰满AV无码久久不卡| 国产亚洲综合久久系列|