Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved [Solved] Stepping into Qt library code whilst debugging

    General and Desktop
    debug libraries
    2
    3
    2804
    Loading More Posts
    • 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.
    • BartD
      BartD last edited by BartD

      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 Reply Quote 0
      • A
        Asperamanca last edited by

        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 Reply Quote 0
        • BartD
          BartD last edited by

          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 Reply Quote 1
          • First post
            Last post