[Interest] Use Qt release DLLs while debugging application
Thiago Macieira
thiago.macieira at intel.com
Tue Apr 24 22:34:48 CEST 2018
On Monday, 23 April 2018 22:34:20 PDT Hamish Moffatt wrote:
> This must be an FAQ, but can I use the Qt release mode DLLs while
> running my application compiled for debug? (In Visual Studio 2015, Qt 5.8).
>
> I looked through the mkspecs and it doesn't seem possible. The
> qtPlatformTargetSuffix function defined in qt_functions.prf always adds
> the d suffix when compiling for debug.
>
>
> I ask because I'm not debugging Qt, and the XML parsing in Qt5Xml seems
> to be horrendously slow in debug mode. It's using 45% of my total CPU
> time, versus 11% in release mode. I'm not actively debugging anything
> remotely related to XML but this is killing debug time for me.
You can't do that because of Microsoft (see Gunnar's reply).
But you can recompile the debug library with optimisation enabled. Or you can
compile your release binary without optimisations and with debug symbols.
Exercise left to the reader.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list