Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to print logs (qDebug, qWarning, qCritical , qFatal) of Qt framework / libraries itself?

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

Scheduled Pinned Locked Moved General and Desktop
loggingoutputprintqdebugloglogsqwarning
2 Posts 2 Posters 4.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AnantAgrawal
    wrote on 4 Sept 2015, 08:07 last edited by
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JKSH
      Moderators
      wrote on 8 Sept 2015, 02:40 last edited by
      #2

      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.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0

      1/2

      4 Sept 2015, 08:07

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved