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
Forum Updated to NodeBB v4.3 + New Features

Debugging Qt application in MS Visual Studio 2017

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 3.8k 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.
  • Z Offline
    Z Offline
    Zgembo
    wrote on 3 Dec 2018, 18:47 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 3 Dec 2018, 20:53 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

      Z 1 Reply Last reply 4 Dec 2018, 07:19
      1
      • S SGaist
        3 Dec 2018, 20:53

        Hi,

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

        Z Offline
        Z Offline
        Zgembo
        wrote on 4 Dec 2018, 07:19 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
        • Z Offline
          Z Offline
          Zgembo
          wrote on 6 Dec 2018, 05:43 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 6 Dec 2018, 16:59 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

            1/5

            3 Dec 2018, 18:47

            • Login

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