Important: Please read the Qt Code of Conduct -

How to print logs (qDebug, qWarning, qCritical , qFatal) of Qt framework / libraries itself?

  • Hi there,

    I am working on a QtWebEngine rendering bug. For the same, i have compiled/built the library in debug mode for my h/w board. The size of the library (debug version) is approx. +1.4GB. On running a sample Qt WebEngine example using gdb, I am getting the following error:
    Can't read data for section '.debug_info' in file '/usr/lib/.debug/'

    Now, to proceed further, I want to print logs (i.e. qDebug, qWarning, qCritical & qFatal) of the Qt framework itself. Kindly let me know how it can be done? Any help will be highly appreciated.


  • Moderators

    Hi @AnantAgrawal,

    Just just launch your app from the console. qDebug, qWarning etc. will be printed to the console too (stdout/stderr). Make sure you don't define QT_NO_DEBUG_OUTPUT -- see for more info.