Results 1 to 14 of 14

Thread: Debugging

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    37
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Debugging

    Quote Originally Posted by marcel View Post
    1. I think the answer is in your other post.
    Which post?

    Quote Originally Posted by marcel View Post
    2. Use >> (append ) instead of > when you redirect the app outpout.
    Works fine.

    Quote Originally Posted by wysota View Post
    The same way as everywhere - by defining a proper macro.
    And what command has the macro to execute? Which arguments does it need?
    Using Qt version 4.3.0

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Debugging

    Quote Originally Posted by Voldemort View Post
    And what command has the macro to execute? Which arguments does it need?
    Did you read the thread I linked to where it's discussed how to turn off debugging output? You have to define a QT_NO_DEBUG_OUTPUT macro for your application! And please don't ask me how to define macros... (hint: "#define" or "-D" compiler option)

  3. #3
    Join Date
    May 2007
    Posts
    37
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Debugging

    I try to compile it:

    Qt Code:
    1. cmake ../QQMsn -DQT_NO_DEBUG_OUTPUT
    To copy to clipboard, switch view to plain text mode 

    Output:

    Parse error in command line argument: -DQT_NO_DEBUG_OUTPUT
    Should be: VAR:type=value
    CMake Error: No cmake scrpt provided.
    CMake Error: Problem processing arguments. Aborting.
    But what is VAR, type and value? I only has a value (QT_NO_DEBUG_OUTPUT), what are the others?
    Using Qt version 4.3.0

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Debugging

    Quote Originally Posted by Voldemort View Post
    But what is VAR, type and value? I only has a value (QT_NO_DEBUG_OUTPUT), what are the others?
    Take a look at CMakeCache.txt file.

    If you want to pass something to the compiler use ADD_DEFINITIONS() command in CMakeList.txt:
    ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )

Similar Threads

  1. Debugging plugins
    By KShots in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2007, 23:20
  2. Macro used for debugging
    By sunil.thaha in forum General Programming
    Replies: 11
    Last Post: 30th March 2007, 18:32
  3. Debugging on Mac
    By rickbsgu in forum Qt Programming
    Replies: 3
    Last Post: 13th October 2006, 14:12
  4. problem with gdb debugging
    By bruce1007 in forum General Discussion
    Replies: 1
    Last Post: 3rd August 2006, 14:37
  5. Qt debugging
    By Morea in forum Newbie
    Replies: 4
    Last Post: 24th March 2006, 19:28

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.