Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. CDB in Qt Creator fails to debug Qt sources
Forum Updated to NodeBB v4.3 + New Features

CDB in Qt Creator fails to debug Qt sources

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 3 Posters 3.0k Views 3 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.
  • SebastianMS Offline
    SebastianMS Offline
    SebastianM
    wrote on last edited by
    #1

    Hi,
    Windows 10 with Qt 5.9 with MSVC binaries. Project managed by CMake.
    When I try to debug inside Qt sources - I see only assembly code.
    Qt is installed through online installer in c:\Qt\5.9 with Src, msvc2015 and msvc2015_64. There are debug libraries of Qt present (like c:\Qt\5.9\msvc2015\lib\Qt5Widgets.lib).
    However, call stack is as in attached image. System tries to look for source files in c:\users\qt\work\qt\qtbase\src\widgets\widgets.
    Creating symlink from c:\users\qt\work\qt to c:\Qt\5.9\Src didn't helped.

    alt text

    raven-worxR 1 Reply Last reply
    0
    • SebastianMS SebastianM

      Hi,
      Windows 10 with Qt 5.9 with MSVC binaries. Project managed by CMake.
      When I try to debug inside Qt sources - I see only assembly code.
      Qt is installed through online installer in c:\Qt\5.9 with Src, msvc2015 and msvc2015_64. There are debug libraries of Qt present (like c:\Qt\5.9\msvc2015\lib\Qt5Widgets.lib).
      However, call stack is as in attached image. System tries to look for source files in c:\users\qt\work\qt\qtbase\src\widgets\widgets.
      Creating symlink from c:\users\qt\work\qt to c:\Qt\5.9\Src didn't helped.

      alt text

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @SebastianM said in CDB in Qt Creator fails to debug Qt sources:

      Creating symlink from c:\users\qt\work\qt to c:\Qt\5.9\Src didn't helped.

      Symlink?! o.O
      You are on windows. On MS Windows links are files. Not directly comparable to UNIX symlinks.

      Did you read this?

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

      kshegunovK 1 Reply Last reply
      0
      • SebastianMS Offline
        SebastianMS Offline
        SebastianM
        wrote on last edited by
        #3

        When I wrote symlink I meant

        mklink /d  c:\users\qt\work\qt c:\Qt\5.9\Src
        
        1 Reply Last reply
        0
        • raven-worxR raven-worx

          @SebastianM said in CDB in Qt Creator fails to debug Qt sources:

          Creating symlink from c:\users\qt\work\qt to c:\Qt\5.9\Src didn't helped.

          Symlink?! o.O
          You are on windows. On MS Windows links are files. Not directly comparable to UNIX symlinks.

          Did you read this?

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @raven-worx said in CDB in Qt Creator fails to debug Qt sources:

          On MS Windows links are files. Not directly comparable to UNIX symlinks.

          There has been support for symlinks in the filesystem from Win7 I believe, I don't know if they exposed it through the UI, though. But it is possible to create real symlinks, just like in Linux.

          @SebastianM

          Have you added the .pdb files to Creator? I think this was a mandatory step when you're working with CDB, unfortunately I don't have windows on hand to try it out, but the relevant page was somewhere in the debugger configuration pane. No symlinks should be needed, only to add the debug database files to the creator debugger config.

          Read and abide by the Qt Code of Conduct

          raven-worxR 1 Reply Last reply
          0
          • kshegunovK kshegunov

            @raven-worx said in CDB in Qt Creator fails to debug Qt sources:

            On MS Windows links are files. Not directly comparable to UNIX symlinks.

            There has been support for symlinks in the filesystem from Win7 I believe, I don't know if they exposed it through the UI, though. But it is possible to create real symlinks, just like in Linux.

            @SebastianM

            Have you added the .pdb files to Creator? I think this was a mandatory step when you're working with CDB, unfortunately I don't have windows on hand to try it out, but the relevant page was somewhere in the debugger configuration pane. No symlinks should be needed, only to add the debug database files to the creator debugger config.

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            @kshegunov
            pdb files are present, otherwise the callstack wouldn't be visible. Also it is noted in the tooltip.
            Just the mapping to the sources is missing.

            @SebastianM
            did you read the link i've posted?

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

            kshegunovK 1 Reply Last reply
            0
            • SebastianMS Offline
              SebastianMS Offline
              SebastianM
              wrote on last edited by
              #6

              Hi,
              Thank you all for help.
              I've read once again "Setting Up Debugger" and used "Mapping Source Paths" section in place of Windows directory link.
              Now it works well.

              1 Reply Last reply
              0
              • raven-worxR raven-worx

                @kshegunov
                pdb files are present, otherwise the callstack wouldn't be visible. Also it is noted in the tooltip.
                Just the mapping to the sources is missing.

                @SebastianM
                did you read the link i've posted?

                kshegunovK Offline
                kshegunovK Offline
                kshegunov
                Moderators
                wrote on last edited by
                #7

                @raven-worx said in CDB in Qt Creator fails to debug Qt sources:

                Just the mapping to the sources is missing.

                Well, I thought this (the mapping) was done by the pdb, but I might've been wrong, it's been mighty long since I last built on windows.

                Read and abide by the 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