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. How to properly set debug information path for Qt sources in Qt Creator (mingw32)?
QtWS25 Last Chance

How to properly set debug information path for Qt sources in Qt Creator (mingw32)?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 1.3k 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.
  • G Offline
    G Offline
    gpalikian
    wrote on last edited by gpalikian
    #1

    I'm using Qt Creator 10.0.2 in Windows. My building kit is Qt 5.15.2 and it's installed using official Qt online installer, the version is opensource. The components I've installed shown below:

    The kit is installed by default to C:\Qt\5.15.2 which contains "Src" (source code) and "mingw81_64" folders. In mingw81_64 I have Qt libraries in the "bin" folder, and *.dll.debug debug information files in the "lib" folder respectively.

    When I'm starting to debug, for example, in main.cpp I have QApplication constructor, which I stepping into. I can do it only in assembly code mode. But I can't switch to the cpp source code. The error I see is shown bellow in a tooltip:

    It says: "Binary debug information is not accessible for this frame. This either means the core was not compiled with debug information, or the debug information is not accessible."

    I have tried this command for gdb:

    set debug-file-directory C:\Qt\5.15.2\mingw81_64\lib

    but that doesn't seem to help.

    But when I copy content of "lib" folder into "bin" folder everything works fine. So it seems like gdb can't find debug information path properly. So the question is how to set that path. Should I do it myself? Shouldn't that functionality work out of box after installation?

    Pl45m4P 1 Reply Last reply
    0
    • G gpalikian

      I'm using Qt Creator 10.0.2 in Windows. My building kit is Qt 5.15.2 and it's installed using official Qt online installer, the version is opensource. The components I've installed shown below:

      The kit is installed by default to C:\Qt\5.15.2 which contains "Src" (source code) and "mingw81_64" folders. In mingw81_64 I have Qt libraries in the "bin" folder, and *.dll.debug debug information files in the "lib" folder respectively.

      When I'm starting to debug, for example, in main.cpp I have QApplication constructor, which I stepping into. I can do it only in assembly code mode. But I can't switch to the cpp source code. The error I see is shown bellow in a tooltip:

      It says: "Binary debug information is not accessible for this frame. This either means the core was not compiled with debug information, or the debug information is not accessible."

      I have tried this command for gdb:

      set debug-file-directory C:\Qt\5.15.2\mingw81_64\lib

      but that doesn't seem to help.

      But when I copy content of "lib" folder into "bin" folder everything works fine. So it seems like gdb can't find debug information path properly. So the question is how to set that path. Should I do it myself? Shouldn't that functionality work out of box after installation?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @gpalikian

      Check what's written in Settings -> Debugger. What path is set there? You need to set the path to your Qt installation there.
      Click "add Qt source" and select the path where your src directory is.
      (in your case C:\Qt\5.15.2\Src)


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      G 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        @gpalikian

        Check what's written in Settings -> Debugger. What path is set there? You need to set the path to your Qt installation there.
        Click "add Qt source" and select the path where your src directory is.
        (in your case C:\Qt\5.15.2\Src)

        G Offline
        G Offline
        gpalikian
        wrote on last edited by gpalikian
        #3

        @Pl45m4 all pathes are set:
        3b760371-38e1-4c57-8781-43d71adc5e86-image.png

        1ddb5f2b-1bc9-43e9-a7d0-c9ecf392950b-image.png

        af9236f0-22c1-46ad-b256-3c542894f163-image.png

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on

        • Login

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