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

            欧美性大战久久久久久| 久久精品国产99国产精偷| 亚洲天堂久久久| 久久亚洲AV成人无码软件| 国产精品美女久久久久久2018| 久久99精品久久久久子伦| 久久午夜无码鲁丝片午夜精品| 亚洲精品无码久久一线| 99久久超碰中文字幕伊人| 亚洲午夜精品久久久久久浪潮| 国内精品久久人妻互换| 亚洲国产成人久久精品99| 97r久久精品国产99国产精| 2021最新久久久视精品爱| 亚洲国产二区三区久久| 一本色道久久88—综合亚洲精品| 国内精品欧美久久精品| 99久久无色码中文字幕| 狠狠精品久久久无码中文字幕| 日本免费久久久久久久网站| 亚洲中文字幕无码一久久区| 日本精品久久久久影院日本| 国产精品久久永久免费| 亚洲精品无码久久久影院相关影片| 狠狠精品久久久无码中文字幕| 亚洲熟妇无码另类久久久| 久久精品免费全国观看国产| 久久亚洲天堂| 欧美精品丝袜久久久中文字幕 | 亚洲国产精品人久久| 伊人久久久AV老熟妇色| 99久久做夜夜爱天天做精品| 亚洲国产成人久久一区久久| 国产真实乱对白精彩久久| 国产成人精品综合久久久| 久久精品成人国产午夜| 国产一级持黄大片99久久| 国产精品久久久久久久| 久久综合丝袜日本网| 久久99久久成人免费播放| 久久er国产精品免费观看8|