Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debugging Qt application in MS Visual Studio 2017

Debugging Qt application in MS Visual Studio 2017

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 4.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ZgemboZ Offline
    ZgemboZ Offline
    Zgembo
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can find the PDB files for your Qt version here.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      ZgemboZ 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        You can find the PDB files for your Qt version here.

        ZgemboZ Offline
        ZgemboZ Offline
        Zgembo
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • ZgemboZ Offline
          ZgemboZ Offline
          Zgembo
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          3
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Glad you found out and thanks for sharing !

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved