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. Using Qt's debug libraries to debug Qt.
Forum Updated to NodeBB v4.3 + New Features

Using Qt's debug libraries to debug Qt.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.2k 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.
  • S Offline
    S Offline
    skycrestway
    wrote on last edited by
    #1

    I have installed Qt using the Qt Online Installer for linux. Looking in the 5.11.1/gcc_64/lib directory, I see each library is there twice. The second one has an extra ".debug" suffix. I believe that I should be able to debug into Qt source if I can link with the debug version.

    How do I specify to use the Qt debug libraries? I am doing a cmake build using QtCreator and running kubuntu 18.04.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      These are just the debug informations which get loaded by gdb when you're debugging. So all should work already.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • S Offline
        S Offline
        skycrestway
        wrote on last edited by
        #3

        It did not work initially. I then added a .gdbinit with source paths and it is working now. There are a lot of source paths to setup in .gdbinit to get full Qt coverage. Is there any automatic method of setting this up?

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          At least you can search all path similar like this

          find /<install_path>/5.11.1/gcc_64/lib -name "*.debug" | xargs dirname | sort -u
          

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • S Offline
            S Offline
            skycrestway
            wrote on last edited by
            #5

            The .gdb dir command needs the source paths, not the *.debug path.

            I am doing Ok by manually adding the needed paths. Closing.

            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