Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Can I filter out qDebug() messages in Qt Creator's Application Output?
Forum Updated to NodeBB v4.3 + New Features

Can I filter out qDebug() messages in Qt Creator's Application Output?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 3.5k Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    Zingam
    wrote on last edited by
    #1

    As DalvikVM produces too many messages, is it possible to redirect my out debug messages outputted by qDebug() to some other console output or filter out? Or is this a missing feature of Qt Creator?

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zingam
      wrote on last edited by
      #2

      This is awesome for Desktop! Thank you! I'll use it in my Desktop projects but I don't see how is it going to really help on an Android device or maybe I missing the point.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andreyc
        wrote on last edited by
        #3

        I mistakenly assumed that you need a filter messages in your application. Then "qInstallMessageHandler":http://qt-project.org/doc/qt-5/qtglobal.html#qInstallMessageHandler would be useful.
        But it does not help to filter the application messages in QtCreator.

        In QtCreator project setting, run configuration you can select custom executable.
        On Linux development host you can create a script that will start your app and then filter out all unnecessary messages.
        I have not tried to use QtCreator for android development yet so don't know if start app through a script will work for android.

        1 Reply Last reply
        0

        • Login

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