Results 1 to 6 of 6

Thread: Unable to use qDebug() to debug

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2011
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Unable to use qDebug() to debug

    I'm running Windows. And running debug, not release. I even added CONFIG += console, but then it would not compile.

    It gave me this error:
    undefined reference to WinMain@16
    Also, I checked the compile command, and did not see QT_NO_DEBUG_OUTPUT.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Unable to use qDebug() to debug

    Have you tried to run your app from cmd line, or gdb ?

  3. The following user says thank you to stampede for this useful post:

    Rikonator (17th August 2011)

  4. #3
    Join Date
    Aug 2011
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Unable to use qDebug() to debug

    It worked with gdb. Thank you so much!

    Now on to exterminate 'em bugs.

Similar Threads

  1. Replies: 13
    Last Post: 6th May 2011, 10:34
  2. QTCreator Mac - Unable to debug properly?
    By regrant in forum Qt Programming
    Replies: 3
    Last Post: 28th October 2010, 22:29
  3. Unable to run debug exe of Qt application in visual studio 2008
    By merry in forum Installation and Deployment
    Replies: 9
    Last Post: 8th October 2010, 09:24
  4. Unable to debug simple Qt application on any of the target?
    By linux.devil in forum Installation and Deployment
    Replies: 1
    Last Post: 3rd October 2010, 05:29
  5. Unable to execute in Debug Mode
    By Kapil in forum Installation and Deployment
    Replies: 38
    Last Post: 5th April 2006, 07:27

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.