PDA

View Full Version : debug in qt



sajis997
17th August 2012, 00:49
Hello forum,


I want debug using the breakpoints in qt creator. By i cannot , it comes up with a dialog saying "This does not seem to be a "Debug" build.
Setting breakpoints by file name and line number may fail."

In the .pro file i have mentioned QT += debug. Is it correct or i have to something more to this.


Regards
Sajjad

ChrisW67
17th August 2012, 04:20
You are building the program using a release build configuration in Qt Creator. Select a debug build setting from the Projects > Build Setting panel, or by using the quick selector above the Run button in the left tool bar. Rebuild and Qt Creator then passes "CONFIG+=debug" into qmake for you. Remove your QT variable setting... it should be been CONFIG anyway.