Gdb Pretty Printers For Qt5
Solution 1:
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.
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). For convenience, I have made his printers available at https://github.com/Lekensteyn/qt5printers
Solution 2:
For reference, the following (gdbinit
+ *.py
) supports qt5 objects, and appears to be periodically updated:
https://invent.kde.org/kdevelop/kdevelop/-/tree/master/plugins/gdb/printers
https://github.com/KDE/kdevelop/tree/master/plugins/gdb/printers
Solution 3:
As far as I know pretty printers are located here: http://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python/
Also, GDB binaries with Python enabled can be found here. http://origin.releases.qt-project.org/gdb/
Post a Comment for "Gdb Pretty Printers For Qt5"