• <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网| 东方aⅴ免费观看久久av| 一本大道加勒比久久综合| 亚洲伊人久久成综合人影院| 久久久中文字幕| 亚洲精品乱码久久久久久蜜桃不卡| 91精品国产色综久久| 久久精品国产日本波多野结衣| 日韩精品久久久久久| 久久免费的精品国产V∧| 人妻丰满?V无码久久不卡| 国产精品久久久福利| 久久精品国产亚洲AV不卡| 久久久久国产| 久久996热精品xxxx| 久久免费高清视频| 国内精品久久久久影院一蜜桃| 亚洲欧美日韩精品久久亚洲区 | 欧美一区二区三区久久综| 亚洲人成电影网站久久| 久久强奷乱码老熟女网站| 精品无码人妻久久久久久| 久久这里只精品国产99热| 狠狠色婷婷久久一区二区三区 | 久久国产高潮流白浆免费观看| 99久久国产宗和精品1上映| 亚洲国产成人精品91久久久 | 精品99久久aaa一级毛片| 久久精品国产福利国产秒| 99久久精品午夜一区二区| 久久久久免费看成人影片| 久久久久人妻精品一区二区三区| 久久免费的精品国产V∧| 久久精品亚洲中文字幕无码麻豆| 久久久久人妻精品一区| 亚洲乱亚洲乱淫久久|