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. Loading Qt Call Stack in Visual Studio?
Forum Updated to NodeBB v4.3 + New Features

Loading Qt Call Stack in Visual Studio?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 734 Views 1 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.
  • C Offline
    C Offline
    chadw
    wrote on 11 Jun 2018, 15:11 last edited by
    #1

    I'm not sure what exactly to search for, so apologies if this has been covered. But I couldn't find any post covering this.

    If I run my Gui in QtCreator and it crashes, I can choose a debugger (Visual Studio being my only option). Visual Studio loads and the Call Stack is populated but the Language column all says "Unknown". Now I can choose the relevant .pdf by clicking on a line with a Qt Dll, let's say "Qt5Core.dll" and browse to my Qt folder to locate it. On my PC that's C:\Qt\5.9.2\msvc2017_64\bin. Doing this, some of the lines change and I can start to see references to classes, functions and line numbers.

    However, I'm then asked for the location of qobject.cpp, which is nowhere to be found on within my Qt installation.

    0_1528729636956_204b9c92-df75-4018-8b19-f7877357b578-image.png

    Interesting enough, there's a path in the screenshot at the top: c:\users\qt\work\qt\qtbase\src\corelib\kernel\qobject.cpp But this is doesn't exist on my PC. Is one/some of the file(s) containing hardcoded paths to the machine where the source code was built before the installation binary was created?

    I've got Qt 5.9.2 MSVC2017 64bit, on a Win 7 PC.

    R 1 Reply Last reply 11 Jun 2018, 16:01
    0
    • C chadw
      11 Jun 2018, 15:11

      I'm not sure what exactly to search for, so apologies if this has been covered. But I couldn't find any post covering this.

      If I run my Gui in QtCreator and it crashes, I can choose a debugger (Visual Studio being my only option). Visual Studio loads and the Call Stack is populated but the Language column all says "Unknown". Now I can choose the relevant .pdf by clicking on a line with a Qt Dll, let's say "Qt5Core.dll" and browse to my Qt folder to locate it. On my PC that's C:\Qt\5.9.2\msvc2017_64\bin. Doing this, some of the lines change and I can start to see references to classes, functions and line numbers.

      However, I'm then asked for the location of qobject.cpp, which is nowhere to be found on within my Qt installation.

      0_1528729636956_204b9c92-df75-4018-8b19-f7877357b578-image.png

      Interesting enough, there's a path in the screenshot at the top: c:\users\qt\work\qt\qtbase\src\corelib\kernel\qobject.cpp But this is doesn't exist on my PC. Is one/some of the file(s) containing hardcoded paths to the machine where the source code was built before the installation binary was created?

      I've got Qt 5.9.2 MSVC2017 64bit, on a Win 7 PC.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 11 Jun 2018, 16:01 last edited by
      #2

      @chadw
      you also need to download the sources via the QtMaintainance tool
      The proposed path comes from the path while Qt was built

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3
      • C Offline
        C Offline
        chadw
        wrote on 12 Jun 2018, 08:28 last edited by
        #3

        Ahh, that makes things a lot easier.

        Downloading the source for my version of QT, I could locate the above cpp file: C:\Qt\5.9.2\Src\qtbase\src\corelib\kernel

        Thank you!

        1 Reply Last reply
        0
        • C Offline
          C Offline
          chadw
          wrote on 12 Jun 2018, 08:31 last edited by chadw 6 Dec 2018, 08:31
          #4

          PS. Couldn't mark your post as the correct answer, only my own. Could someone rectify that and mark @raven-worx's post as the correct solution?

          A 1 Reply Last reply 12 Jun 2018, 08:47
          0
          • C chadw
            12 Jun 2018, 08:31

            PS. Couldn't mark your post as the correct answer, only my own. Could someone rectify that and mark @raven-worx's post as the correct solution?

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 12 Jun 2018, 08:47 last edited by
            #5

            @chadw I think this is a bug in the forum software - you can only mark your own posts.

            Should hopefully work after the next update ;)

            Qt has to stay free or it will die.

            1 Reply Last reply
            0

            1/5

            11 Jun 2018, 15:11

            • 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