Solved Debugging Qt application in MS Visual Studio 2017
-
Hi all,
I have inherited a project developed with Qt version 5.9.4 and Visual Studio 2017. I am trying to setup my development environment. So far I have managed to compile project in release and debug mode but my application crashes when I try to run it in debug mode. From the output window I can see that following files can not be found or loaded:
'C:\Qt\Qt5.9.4\5.9.4\msvc2017_64\bin\Qt5Sql.dll'. Cannot find or open the PDB file.
'C:\Qt\Qt5.9.4\5.9.4\msvc2017_64\bin\Qt5Cored.dll'. Cannot find or open the PDB file.
'C:\Qt\Qt5.9.4\5.9.4\msvc2017_64\bin\Qt5Guid.dll'. Cannot find or open the PDB file.
'C:\Qt\Qt5.9.4\5.9.4\msvc2017_64\bin\Qt5Widgetsd.dll'. Cannot find or open the PDB file.
'C:\Qt\Qt5.9.4\5.9.4\msvc2017_64\bin\Qt5PrintSupportd.dll'. Cannot find or open the PDB file.
'C:\Qt\Qt5.9.4\5.9.4\msvc2017_64\bin\Qt5Core.dll'. Cannot find or open the PDB file.
'C:\Qt\Qt5.9.4\5.9.4\msvc2017_64\bin\Qt5Sqld.dll'. Cannot find or open the PDB file.Does anyone have any idea how to overcome this problem?
-
Hi,
You can find the PDB files for your Qt version here.
-
@SGaist Hi, thank you for the pdb link. I have imported filed, but my app still crashes when I run it in debug mode with "Debug Assertion failed" message. Same project runs well on my friends machine.
-
Finally i figured out what was the problem. Windows 10 SDK, I had the latest version servicing release 10.0.17763.132 but the project was build with previous version and that caused the problems.
-
Glad you found out and thanks for sharing !