Results 1 to 2 of 2

Thread: qDebug() on OSX

  1. #1
    Join Date
    Sep 2006
    Thanked 1 Time in 1 Post
    Qt products
    MacOS X Unix/X11 Windows

    Default qDebug() on OSX

    Hi All,

    I am trying to debug a program using qDebug. It works fine on Windows and Linux, but I get no output on OSX (using Qt4.4.0).

    I have tried everything I can think of, but no luck.

    I started the program directly from the terminal ("./") and using open ("open ./"), I've check that QT_NO_DEBUG_OUTPUT is not defined.

    I've run out of ideas to try :-(

  2. #2
    Join Date
    Sep 2008
    Thanked 10 Times in 9 Posts
    Qt products
    Unix/X11 Windows

    Default Re: qDebug() on OSX

    Have you tried using qInstallMsgHandler as in this example? This technique worked for me on Windows when I re-directed output to a file.

Similar Threads

  1. Crashing without qDebug() ?
    By xtreme in forum Qt Programming
    Replies: 3
    Last Post: 5th August 2008, 17:01
  2. Redirecting qDebug()
    By hardgeus in forum Qt Programming
    Replies: 1
    Last Post: 23rd December 2006, 01:39
  3. Disable qDebug output
    By the_bis in forum Qt Programming
    Replies: 7
    Last Post: 30th November 2006, 20:14
  4. qDebug macro substitution
    By the_bis in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2006, 08:31
  5. qDebug() output
    By Doug Broadwell in forum Newbie
    Replies: 1
    Last Post: 1st November 2006, 21:54


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.