Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Adding Qt to gdb without QtCreator
Tom_E last edited by
I need to debug Qt applications in an CLI debug environment outside of QtCreator - hosted on Mac OS X, but with a custom GDB 7.x (probably Python-enabled).
I would love to have enhanced support for QStrings, QObjects et al. Can anybody give me an hint where to look how QtCreator integrates the Python based gdb enhancements and the gdb C++ addons (on Mac OS X)?
So far I looked at http://doc.qt.nokia.com/qtcreator-2.3/creator-debugging-helpers.html and tried the KDE .gdbinit script.
[EDIT: fixed link, Volker]
Duck last edited by
[Apple's gdb is a more robust choice even if it has no support python.] Anyway, for "deep inspection" of QObjects (i.e. evaluate properties, etc) Qt Creator is about the only choice I am aware of, for simpler types like QStrings http://websvn.kde.org/checkout/trunk/KDE/kdesdk/scripts/kde-devel-gdb does the trick, too. You could try to get a gdbserver up int the "CLI environment" and start Qt Creator on a machine with a GUI and a suitable cross-gdb.