PDA

View Full Version : debug qt application



sajis997
2nd April 2012, 11:27
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:



CONFIG += debug
SOURCES += \
main.cpp




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




This does not seem to be a "Debug" build.
Setting breakpoints by file name and line number may fail.



What do i have to have this application debugging enabled?


Regards
Sajjad

wysota
2nd April 2012, 12:29
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.