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. [Solved]Debugging Helpers in Qtcreator don't work on Linux
Forum Updated to NodeBB v4.3 + New Features

[Solved]Debugging Helpers in Qtcreator don't work on Linux

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 4.2k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    llCorvinuSll
    wrote on last edited by
    #1

    Hi and sorry for mess English.

    In theory while debugging in qt-creator show fields of classes defined in Qt.
    But it doesn't do it and display only <not accessible> or mem address.

    I think that the problem in GDB or Python scripts.

    GDB loaded from http://origin.releases.qt-project.org/gdb/ gives what is described above.

    I tried to Build GDB myself with config flags

    @configure --prefix=<DIR> --target x86_64-linux-gnu --with-python@
    

    and

    @configure --target x86_64-linux-gnu --disable-nls --with-libiconv --with-expat --with-python@
    

    but they crash while starting from Qtcreator

    i'm see debugger log from qt creator, and found that GDB return not parsed response like

    @{iname="local.ui",name="ui",addr="0xb80170",addr="0xb80170",numchild="0",origaddr="0x7fffffffe578",type="QWidget",value="{...}",}@

    on windows i take

    @{iname="local.ui",name="ui",addr="0x194b3298",addr="0x194b3298",numchild="5",origaddr="0x28fe28",type="QWidget",value="{...}",}@

    differ in numchild, also Q<collection> and QStrings doesn,t show

    i'm running on Ubuntu 12.10 x64
    Qt version is 4.8.4 (from Git)
    and creators are 2.5.2(from qt-project site) and 2.6.81 (git)
    GDB versions:
    build myself - 7.5
    download from qt-project - 7.4.1

    on Win8 subject works fine in combination QtCreator(2.6.81)-Qt-4.8.4-MinGW-GDB-7.5(build myself from source with Py. support)

    1 Reply Last reply
    0
    • L Offline
      L Offline
      llCorvinuSll
      wrote on last edited by
      #2

      Try to build with http://qt.gitorious.org/qt-creator/qt-creator/trees/master/dist/gdb
      it didn't help!

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        I recently ran into a trap when I did not build Qt with debug symbols: Some datatypes still worked, but others (those using d_ptr) did not.

        So do you have debug symbols enabled for the Qt version you are debugging?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          llCorvinuSll
          wrote on last edited by
          #4

          SOLUTION: Qt libs didn't contain debug simbols. I was caught by flag -debug-and-release. It work in macOS and windows (MinGW) but not in Linux. Be careful!

          1 Reply Last reply
          0

          • Login

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