To answer that, you should tell how you built your project. For Qt projects I have found that the best way is using qmake to create a .pro file, then a makefile and use the makefile with c::b. In that case to enable debuging you should build the Makefile.debug (Project options -> check custom makefile with name Makefile.debug). But that's my approach using different a qt version.