简体   繁体   English

适用于Qt5的GDB漂亮打印机

[英]GDB pretty printers for Qt5

Where I can find gdb pretty printers for qt5? 在哪里可以找到qt5的gdb漂亮打印机?

I could find only for qt4 on kde developer site. 我只能在kde开发者网站上找到qt4。 Maybe somebody knows whether pretty printers for new version of Qt exist and where I can find them. 也许有人知道是否存在适用于新版Qt的漂亮打印机以及我可以在哪里找到它们。

I know that it's possible to use latest version of QtCreator, but I need just plain python scripts for GDB. 我知道可以使用最新版本的QtCreator,但我只需要简单的GDB python脚本。

For reference, the following ( gdbinit + *.py ) supports qt5 objects, and appears to be periodically updated: 作为参考,以下( gdbinit + *.py )支持qt5对象,并且似乎定期更新:

https://cgit.kde.org/kdevelop.git/tree/plugins/gdb/printers https://cgit.kde.org/kdevelop.git/tree/plugins/gdb/printers

https://github.com/KDE/kdevelop/tree/master/plugins/gdb/printers https://github.com/KDE/kdevelop/tree/master/plugins/gdb/printers

The pretty printers listed on https://techbase.kde.org/Development/Tutorials/Debugging/Debugging_with_GDB are only partially compatible with Qt 5. Some types (such a QByteArray) are not handled correctly. https://techbase.kde.org/Development/Tutorials/Debugging/Debugging_with_GDB上列出的漂亮打印机仅与Qt 5部分兼容。某些类型(例如QByteArray)未正确处理。

Alex Merry has worked on Qt 5 pretty printers and tried to push these into the Qt5 Base packages (unfortunately it did not made it). Alex Merry曾在Qt 5漂亮的打印机上工作并尝试将这些打印机推入Qt5 Base软件包(不幸的是它没有成功)。 For convenience, I have made his printers available at https://github.com/Lekensteyn/qt5printers 为方便起见,我在https://github.com/Lekensteyn/qt5printers上提供了他的打印机

As far as I know pretty printers are located here: http://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python/ 据我所知,漂亮的打印机位于这里: http//gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python/

Also, GDB binaries with Python enabled can be found here. 此外,可以在此处找到启用了Python的GDB二进制文件。 http://origin.releases.qt-project.org/gdb/ http://origin.releases.qt-project.org/gdb/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM