Important: Please read the Qt Code of Conduct -

Adding Qt to gdb without QtCreator

  • Hi,

    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 and tried the KDE .gdbinit script.


    [EDIT: fixed link, Volker]

  • [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 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.

Log in to reply