Qt World Summit: Submit your Presentation

Cannot view Qt objects in debugger

  • 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
    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
    dQt: D:\Programs\QtSDK\Desktop\Qt\4.7.4\mingw
    dQML server:
    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\

    Any help appreciated - Rory.

Log in to reply