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. [Solved] Stepping into Qt library code whilst debugging

[Solved] Stepping into Qt library code whilst debugging

Scheduled Pinned Locked Moved Unsolved General and Desktop
debug libraries
3 Posts 2 Posters 4.0k 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.
  • B Offline
    B Offline
    BartD
    wrote on 7 Aug 2016, 18:46 last edited by BartD 8 Aug 2016, 19:55
    #1

    Hi,

    I'm using the latest Qt version (5.7) and I'm using Visual Studio 2015 to compile into 64-bit code.
    The debugger has been set up as per tips in : http://doc.qt.io/qtcreator/creator-debugger-engines.html
    Debugging works fine but I CANNOT step into the Qt libraries themselves, despite the *.pdb files being present in the lib folder and the source files under Qt\5.7\src. So, what do I do wrong here ??

    Thanks, Bart

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asperamanca
      wrote on 8 Aug 2016, 11:10 last edited by
      #2

      Most common issue I know is that, for some reason, you debugger finds and uses a release version of your Qt dlls first.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BartD
        wrote on 8 Aug 2016, 19:37 last edited by
        #3

        I found the solution, when I realized that the debugger took 3 x F11 (step into) before moving to the next line. What was missing was a reference to the Qt source files. Solution :

        1. Select Projects tool in QtCreator
        2. Select Manage Kits...
        3. Select Debugger in Popup Dialog
        4. Look for "Add Qt sources..." button
        5. Provide the path for the Qt source folder
        6. This path will be added as "Target Path"
        7. That's all - it works now...
        1 Reply Last reply
        1

        2/3

        8 Aug 2016, 11:10

        • Login

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