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. How to step into the Qt source code (Qt 5.15.2 / Windows) ?

How to step into the Qt source code (Qt 5.15.2 / Windows) ?

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 2.5k Views
  • 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.
  • A Offline
    A Offline
    Alvein
    wrote on 7 Apr 2021, 21:21 last edited by
    #1

    Hello.

    I already tried to follow some instructions like the ones here:

    https://stackoverflow.com/questions/44734160/i-cant-step-into-qt-source-code-on-windows

    I have downloaded the source code and those "debug information files" which are like 13GB in size.

    Qt-5.15.2.PNG

    My Qt version is 5.15.2 MSVC2019

    Apart of setting these paths (in case they are correct), what more should I do?

    Qt-5.15.2-debug.PNG

    Anybody can point me into the right direction?

    Thank you very much.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nagesh
      wrote on 7 Apr 2021, 23:21 last edited by
      #2

      @Alvein
      check this link information

      A 1 Reply Last reply 7 Apr 2021, 23:54
      0
      • N nagesh
        7 Apr 2021, 23:21

        @Alvein
        check this link information

        A Offline
        A Offline
        Alvein
        wrote on 7 Apr 2021, 23:54 last edited by
        #3

        @nagesh That's a very old thread I already visited.
        Already did what the most recent answer suggests, with no success.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bonnie
          wrote on 8 Apr 2021, 00:15 last edited by
          #4

          For MSVC kits, set CDB paths in Qt creator.
          For MinGW kits, from my own experience, you need to move the *.dll.debug files from the Qt lib folder to bin folder.

          A 1 Reply Last reply 8 Apr 2021, 00:36
          1
          • N Offline
            N Offline
            nagesh
            wrote on 8 Apr 2021, 00:18 last edited by nagesh 4 Aug 2021, 00:22
            #5

            @Alvein Have you tried enabling this option

            To get "the source path in the debug information of the executable as reported by the debugger", you can activate the "Use Tooltips in Stack-View when Debugging" option by right-clicking in the Stack View and move the mouse over a specific function call.
            

            Even though thread is old, yesterday user posted accepted answer working fine in Qt creator version 4.14.1 (not sure about mingw/msvc build)

            He has installed the sources when installing Qt via the online installer
            
            1 Reply Last reply
            0
            • B Bonnie
              8 Apr 2021, 00:15

              For MSVC kits, set CDB paths in Qt creator.
              For MinGW kits, from my own experience, you need to move the *.dll.debug files from the Qt lib folder to bin folder.

              A Offline
              A Offline
              Alvein
              wrote on 8 Apr 2021, 00:36 last edited by
              #6

              @Bonnie said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:

              For MSVC kits, set CDB paths in Qt creator.

              Set them to what?

              @nagesh said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:

              @Alvein Have you tried enabling this option

              I don't need to see tooltips. I need to get the source code, not a disassembly.

              Even though thread is old, yesterday user posted accepted answer working fine in Qt creator version 4.14.1 (not sure about mingw/msvc build)

              And that didn't work and that's why I created this question.

              He has installed the sources when installing Qt via the online installer

              See my attached pics.

              B 1 Reply Last reply 8 Apr 2021, 03:24
              0
              • A Alvein
                8 Apr 2021, 00:36

                @Bonnie said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:

                For MSVC kits, set CDB paths in Qt creator.

                Set them to what?

                @nagesh said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:

                @Alvein Have you tried enabling this option

                I don't need to see tooltips. I need to get the source code, not a disassembly.

                Even though thread is old, yesterday user posted accepted answer working fine in Qt creator version 4.14.1 (not sure about mingw/msvc build)

                And that didn't work and that's why I created this question.

                He has installed the sources when installing Qt via the online installer

                See my attached pics.

                B Offline
                B Offline
                Bonnie
                wrote on 8 Apr 2021, 03:24 last edited by Bonnie 4 Aug 2021, 03:30
                #7

                @Alvein said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:

                Set them to what?

                Add Qt bin folder (where the .pdb files are located) to Symbol Paths.
                If you want to step into some plugins' source code, also need to add those plugin folders (because their .pdb files are not located in the bin folder).

                A 1 Reply Last reply 8 Apr 2021, 04:54
                0
                • B Bonnie
                  8 Apr 2021, 03:24

                  @Alvein said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:

                  Set them to what?

                  Add Qt bin folder (where the .pdb files are located) to Symbol Paths.
                  If you want to step into some plugins' source code, also need to add those plugin folders (because their .pdb files are not located in the bin folder).

                  A Offline
                  A Offline
                  Alvein
                  wrote on 8 Apr 2021, 04:54 last edited by
                  #8

                  @Bonnie I did this
                  Qt-5.15.2-debug-CDB.PNG

                  The folder C:\Qt\5.15.2\msvc2019\bin has all the Qt5*.pdb files.

                  Is that OK?

                  Because it does not work either.

                  Qt-5.15.2-stack.PNG

                  What does that note mean?

                  B 1 Reply Last reply 8 Apr 2021, 05:07
                  0
                  • A Alvein
                    8 Apr 2021, 04:54

                    @Bonnie I did this
                    Qt-5.15.2-debug-CDB.PNG

                    The folder C:\Qt\5.15.2\msvc2019\bin has all the Qt5*.pdb files.

                    Is that OK?

                    Because it does not work either.

                    Qt-5.15.2-stack.PNG

                    What does that note mean?

                    B Offline
                    B Offline
                    Bonnie
                    wrote on 8 Apr 2021, 05:07 last edited by Bonnie 4 Aug 2021, 05:07
                    #9

                    @Alvein Seems that some Source Paths Mapping entries are missing.
                    Try to remove the existing ones, and then click "Add Qt sources.." again.
                    I have four entries in my qt creator.

                    A 1 Reply Last reply 8 Apr 2021, 05:43
                    3
                    • B Bonnie
                      8 Apr 2021, 05:07

                      @Alvein Seems that some Source Paths Mapping entries are missing.
                      Try to remove the existing ones, and then click "Add Qt sources.." again.
                      I have four entries in my qt creator.

                      A Offline
                      A Offline
                      Alvein
                      wrote on 8 Apr 2021, 05:43 last edited by
                      #10

                      @Bonnie That made it.
                      I just needed the c:/users/qt/work/qt target, though.
                      And no CDB paths at all.

                      I'm pretty sure I used the Add Qt sources button before, but ATM, IDK (and IDC) about what happened.

                      Thank you very much!
                      I've been on this for a long while.

                      1 Reply Last reply
                      0

                      7/10

                      8 Apr 2021, 03:24

                      • Login

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