How can I enable Edit and Continue in my Qt application?

“Edit and Continue” is not enabled by default for Qt projects since project files, created with “qmake -tp vc” contain the compiler switch /Zi. To enable “edit & continue”, the right switch would be /ZI.

To enable “Edit & Continue” in your .pro file, add the following to the .pro file:

  1. QMAKE_CFLAGS_DEBUG      += -ZI
  2. QMAKE_CXXFLAGS_DEBUG += -ZI  

Alternatively, you can enable “Edit & Continue” for your project inside Visual Studio, as follows:

  • open the project settings
  • select “C/C++ -> General”
  • set “Debug Information Format” to “Program Database for Edit & Continue (/ZI)”

No comments

Write a comment

Sorry, you must be logged in to post a comment.