Results 1 to 2 of 2

Thread: debug qt application

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default debug qt application

    Hello forum,


    I have created an empty qt project and to have the debugging enabled i have set the following optins in the .pro file as follows:

    Qt Code:
    1. CONFIG += debug
    2. SOURCES += \
    3. main.cpp
    To copy to clipboard, switch view to plain text mode 


    Then i set a break point in a particular line and start debugging using the F5 key and then a message says the following:


    Qt Code:
    1. This does not seem to be a "Debug" build.
    2. Setting breakpoints by file name and line number may fail.
    To copy to clipboard, switch view to plain text mode 


    What do i have to have this application debugging enabled?


    Regards
    Sajjad

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

    Default Re: debug qt application

    If you are using QtCreator then you need to change your build mode to debug and rebuild the project. If you are using commandline, run qmake && make.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 17th April 2011, 12:05
  2. Can't debug QT application
    By corrado.calzoni in forum Newbie
    Replies: 0
    Last Post: 18th March 2011, 10:48
  3. Debug QT4 Gui Application
    By cae in forum Newbie
    Replies: 11
    Last Post: 22nd November 2009, 13:10
  4. Application does not exist when I debug
    By learning_qt in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 23rd September 2008, 16:26
  5. qt4 application debug
    By tsemer in forum Qt Programming
    Replies: 5
    Last Post: 9th November 2007, 17:58

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.