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/libQt5WebEngineCore.so.5.4.0'

    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.

    Thanks,
    Anant


  • 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 http://doc.qt.io/qt-5/debug.html for more info.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.