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

            久久亚洲高清综合| 久久WWW免费人成一看片| 国产亚洲欧美成人久久片| 国产精品久久成人影院| 久久国产视频网| 亚洲中文字幕无码久久综合网| 精品熟女少妇a∨免费久久| 国产精品久久久久乳精品爆| 波多野结衣久久一区二区| 国产人久久人人人人爽| 欧美久久一区二区三区| av午夜福利一片免费看久久| 91精品婷婷国产综合久久| 久久99久国产麻精品66| 国内精品久久久久久不卡影院| 亚洲综合精品香蕉久久网| 久久精品国产精品亚洲| 国产成人精品白浆久久69| yy6080久久| 伊人色综合久久天天人守人婷 | 精品人妻伦九区久久AAA片69| 色老头网站久久网| 国产精品午夜久久| 99久久777色| 久久精品国产亚洲av麻豆小说| 欧美午夜A∨大片久久 | 99久久综合狠狠综合久久| 欧美一区二区三区久久综合| 欧美日韩精品久久久免费观看| 精品久久久久国产免费| 亚洲国产成人久久精品影视 | 夜夜亚洲天天久久| 久久国产精品99久久久久久老狼| 伊人久久精品无码二区麻豆| 合区精品久久久中文字幕一区| 久久国产精品免费一区二区三区 | 久久天天日天天操综合伊人av| 99久久婷婷国产一区二区| 久久99国产精一区二区三区| 国产精品久久久久久影院| 国产精品久久一区二区三区|