6

My Qt 4.7.4 project file doesn't generate map/pdb files under windows release builds. thus, postmortem debugging is impossible.

Any flag to change that?

JasonGenX
  • 4,952
  • 27
  • 106
  • 198

1 Answers1

9

Adding the following to the .pro file:

QMAKE_LFLAGS_RELEASE+=/MAP
QMAKE_CFLAGS_RELEASE += /Zi
QMAKE_LFLAGS_RELEASE +=/debug /opt:ref
JasonGenX
  • 4,952
  • 27
  • 106
  • 198