Results 1 to 4 of 4

Thread: QT debug output

  1. #1

    Default QT debug output

    I'm using the QT command prompt to compile my exe program. In the source code there's lots of "qDebug" functions.
    I want to get that output data to the command prompt so I can figure out what it's actually outputting. Not sure how.

    I did manage to get it to output info to my QT program but I can't build in this program due to a strange error.
    You can read more about this error here.
    http://www.qtcentre.org/threads/4114...ld-directories

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT debug output

    Not sure how.
    Just start your application from the command prompt.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3

    Default Re: QT debug output

    Makes sense but it doesn't output anything when I type the name of the application.
    Is there another command or technique?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT debug output

    Quote Originally Posted by KingOfHeart View Post
    Makes sense but it doesn't output anything when I type the name of the application.
    If the application actually runs and doesn't output any debug information to the console then it is either:
    • not executing the qDebug() or qWarning() statements
    • compiled with QT_NO_DEBUG_OUTPUT defined (or QT_NO_WARNING_OUTPUT)

    Is there another command or technique?
    See the "Debugging Techniques" page in Qt Assistant.

Similar Threads

  1. Notifications of exceptions in debug output
    By piotr.dobrogost in forum Qt Programming
    Replies: 0
    Last Post: 21st September 2009, 20:21
  2. Replies: 2
    Last Post: 20th July 2007, 16:34
  3. QT4 debug mode output / QList: Out of memory
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 29th May 2007, 09:53
  4. qmake debug/release scope and disabling debugging output
    By No-Nonsense in forum Qt Programming
    Replies: 7
    Last Post: 12th March 2007, 15:48
  5. qmake and debug output
    By mattie in forum Qt Programming
    Replies: 7
    Last Post: 18th September 2006, 22:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.