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.
  • BartDB Offline
    BartDB Offline
    BartD
    wrote on last edited by BartD
    #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 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
      • BartDB Offline
        BartDB Offline
        BartD
        wrote on 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

        • Login

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