Qt debugging with release

I am trying to debug a program that I did with Qt 4.7.3 in Release mode. I would like to debug this program. Is there a way to create Qt DLLs in a release with debug information?

I am using Windows with Visual Studios 2008.

0
source share
1 answer

To generate debug symbols for your Qt build version on windows ...

  • Add the -Zi flag to QMAKE_CFLAGS_RELEASE in your qmake.conf.
  • Add the "/ DEBUG" flag to QMAKE_LFLAGS_RELEASE in your qmake.conf (you probably also want "/ OPT: REF" and "/ OPT: icf")

To build VC2008, you must add this to Qt \ mkspecs \ win32-msvc2008 \ qmake.conf then configure and rebuild.

qmake, : http://doc.qt.io/qt-5/qmake-variable-reference.html

+2

All Articles