Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot view Qt objects in debugger
Forum Updated to NodeBB v4.3 + New Features

Cannot view Qt objects in debugger

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 2.3k 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.
  • R Offline
    R Offline
    Rory_1
    wrote on 4 Jan 2012, 21:03 last edited by
    #1

    I have installed QtSDK 4.7.4 using the QtSDK windows installer on Win7 and running Qt Creator with Windows MinGW/GCC. I am unable to see Qt Objects in the Locals and Expressions window, although I do see the contents of QString. While reviewing the documentation I found this reference (at http://doc.qt.nokia.com/qtcreator-2.4/creator-debugging-helpers.html) which appears to address the issue:

    bq. Enabling Debugging Helpers for Qt's Bootstrapped Applications
    Qt's bootstrapped applications (such as moc and qmake) are built in a way that is incompatible with the default build of the debugging helpers. To work around this, add dumper.cpp to the compiled sources in the application Makefile.

    bq. Choose Tools > Options > Debugger > Debugging Helper > Use debugging helper from custom location, and specify an invalid location, such as /dev/null.

    I found dumper.cpp but I do not know how to "add dumper.cpp to the compiled sources in the application Makefile". Can I do this in the project pro file?

    Second issue - Debugger helper does not have an option "use debugging helper from custom location" in my version of Creator options.

    Other steps I have taken:

    • I have reviewed the debugger log to see if the debugging helper was loaded:

    bq. sStarting debugger 'GdbEngine' for ABI 'x86-windows-msys-pe-32bit'...
    dStart parameters: 'TextFinder' mode: 1
    dABI: x86-windows-msys-pe-32bit
    dExecutable: D:\Data\My Projects\Qt\TextFinder-build-desktop-Qt_4_7_4_for_Desktop_-MinGW_4_4__Qt_SDK__Debug\debug\TextFinder.exe
    dDirectory: D:\Data\My Projects\Qt\TextFinder-build-desktop-Qt_4_7_4_for_Desktop
    -MinGW_4_4__Qt_SDK__Debug
    dDebugger: D:\Programs\QtSDK\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe
    dProject: D:\Data\My Projects\Qt\TextFinder (built: D:\Data\My Projects\Qt\TextFinder-build-desktop-Qt_4_7_4_for_Desktop
    -_MinGW_4_4__Qt_SDK__Debug)
    dQt: D:\Programs\QtSDK\Desktop\Qt\4.7.4\mingw
    dQML server: 127.0.0.1:3768
    dSysroot:
    dDebug Source Loaction:
    dSymbol file:
    dDumper libraries: D:\Programs\QtSDK\Desktop\Qt\4.7.4\mingw\qtc-debugging-helper\ D:\Programs\QtSDK\QtCreator\qtc-debugging-helper\69987583\ C:\Users\Rory\AppData\Local\Nokia\QtCreator\qtc-debugging-helper\69987583\

    • I found a related post at http://www.qtcentre.org/threads/45136-Can-t-see-container-contents-QStrings-when-debugging?highlight=locals+not+showing where I also posted.

    • I found this post that may be related but does not offer a solution http://developer.qt.nokia.com/forums/viewthread/10346.

    Any help appreciated - Rory.

    1 Reply Last reply
    0

    1/1

    4 Jan 2012, 21:03

    • Login

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