How to make a Qt application debuggable

From Qt Wiki
Jump to navigation Jump to search

Template:ArticleMetaData To produce a debugging version of the application during development add debug to the CONFIG variable in the project (.pro) file as shown below :

CONFIG += debug

Then, use qmake to generate updated Makefile for your project, and compile, now you should be able to obtain debug information about your application when running it in a debugging environment.