QtCreator: Debugger does not work



  • Hello,

    I am a Qt beginner and I just tried 2 hours to get the debugger in QtCreator working - without any luck. Now I am running out of ideas.
    My system: QtCreator 3.0.0, Qt: Qt 5.2.0 for Windows 32-bit (VS 2010, 570 MB), Windows 7 64 Bit with Visual Studio 2010.

    I manually downloaded Windows 7 debugging tools and I now have a 64 Bit version of the gdb under C:\Program Files\Debugging Tools for Windows (x64). I do not know if this is a problem because I downloaded the 32 Bit version of Qt.

    I also tried to configure CDB:
    http://picload.org/view/owllpdl/qrdebugger.png.html

    Now I try to debug one of the samples called "application". I can build and run the sample without problems in Release mode. But when I switch to debug, set a breakpoint and start debugging, CDB crashes. This is the debugger log:
    window1:
    l+t
    l+s
    bu1001 D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\examples\widgets\mainwindows\application\main.cpp:50
    !qtcreatorcdbext.breakpoints -t 0 -v
    sxn 0x4000001f
    .asm source_line
    !qtcreatorcdbext.setparameter maxStringLength=10000 maxStackDepth=20
    !qtcreatorcdbext.pid -t 1
    g
    ERROR: Der Prozess ist abgestürzt
    ERROR: CDB ist abgestürzt

    Second window:
    dATTEMPT SYNC

    sStarte Debugger "CdbEngine" für ABI "x86-windows-msvc2010-pe-32bit"...
    dStart parameters: 'application' mode: 1
    dABI: x86-windows-msvc2010-pe-32bit
    dLanguages: c++
    dExecutable: D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\examples\widgets\mainwindows\build-application-Desktop_Qt_5_2_0_MSVC2010_32bit_OpenGL-Debug\debug\application.exe
    dDirectory: D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\examples\widgets\mainwindows\build-application-Desktop_Qt_5_2_0_MSVC2010_32bit_OpenGL-Debug
    dDebugger: C:\Program Files\Debugging Tools for Windows (x64)\cdb.exe
    dProject: D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\examples\widgets\mainwindows\application (built: D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\examples\widgets\mainwindows\build-application-Desktop_Qt_5_2_0_MSVC2010_32bit_OpenGL-Debug)
    dQML server: 127.0.0.1:3768
    dRemote: :0
    dSysroot:
    dDebug Source Location:
    dDumper libraries: D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\qtc-debugging-helper\ D:\Libs\Qt\Qt5.2.0\Tools\QtCreator\qtc-debugging-helper\1200760736\ C:\Users\flo\AppData\Local\QtProject\QtCreator\qtc-debugging-helper\1200760736
    dDebugger settings:
    dUseDebuggingHelper: true (default: true)
    dRaiseOnInterrupt: true (default: true)
    ...
    *** WARNING: Unable to verify checksum for application.exe
    Obtained breakpoint 0x37cd3c (#1), at 0x117125e, module: 'application'
    All breakpoints have been resolved.
    Assembly options: source_line
    Qt Creator CDB extension version 3.0 64 bit built Nov 19 2013.
    dPID 5316 gemeldet
    dNOTE: INFERIOR SETUP OK
    dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6) [master]
    dState changed from InferiorSetupOk(6) to EngineRunRequested(7) [master]
    dQUEUE: RUN ENGINE
    dCALL: RUN ENGINE
    <g

    dNOTE: ENGINE RUN AND INFERIOR RUN OK
    sLäuft.
    dState changed from EngineRunRequested(7) to InferiorRunOk(11) [master]
    ModLoad: 0000000077320000 000000007743f000 WOW64_IMAGE_SECTION
    ModLoad: 0000000076a00000 0000000076b10000 WOW64_IMAGE_SECTION
    ModLoad: 0000000077320000 000000007743f000 NOT_AN_IMAGE
    ModLoad: 0000000077440000 000000007753a000 NOT_AN_IMAGE
    ModLoad: 0000000076a00000 0000000076b10000 C:\Windows\syswow64\kernel32.dll
    ModLoad: 0000000075170000 00000000751b7000 C:\Windows\syswow64\KERNELBASE.dll
    ModLoad: 0000000057210000 00000000579b9000 D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\bin\Qt5Guid.dll
    ModLoad: 000000006f330000 000000006f3f8000 C:\Windows\SysWOW64\OPENGL32.dll
    ModLoad: 000000006f300000 000000006f322000 C:\Windows\SysWOW64\GLU32.dll
    ModLoad: 000000006f210000 000000006f2f7000 C:\Windows\SysWOW64\DDRAW.dll
    ModLoad: 000000006f1c0000 000000006f1c6000 C:\Windows\SysWOW64\DCIMAN32.dll
    ModLoad: 0000000076350000 00000000764ed000 C:\Windows\syswow64\SETUPAPI.dll
    ModLoad: 00000000762b0000 00000000762d7000 C:\Windows\syswow64\CFGMGR32.dll
    ModLoad: 0000000076630000 00000000766bf000 C:\Windows\syswow64\OLEAUT32.dll
    ModLoad: 0000000076b10000 0000000076c6c000 C:\Windows\syswow64\ole32.dll
    ModLoad: 0000000076610000 0000000076622000 C:\Windows\syswow64\DEVOBJ.dll
    ModLoad: 00000000704f0000 0000000070503000 C:\Windows\SysWOW64\dwmapi.dll
    ModLoad: 0000000056270000 0000000056a4f000 D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\bin\Qt5Cored.dll
    ModLoad: 0000000076c80000 0000000076cb5000 C:\Windows\syswow64\WS2_32.dll
    ModLoad: 00000000753d0000 00000000753d6000 C:\Windows\syswow64\NSI.dll
    ModLoad: 00000000560b0000 0000000056265000 D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\bin\icuin51.dll
    ModLoad: 0000000055f60000 00000000560a3000 D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\bin\icuuc51.dll
    ModLoad: 0000000054a10000 0000000055f5a000 D:\Libs\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\bin\icudt51.dll
    ModLoad: 0000000072df0000 0000000072eaf000 C:\Windows\SysWOW64\MSVCR100.dll
    ModLoad: 0000000072eb0000 0000000072f19000 C:\Windows\SysWOW64\MSVCP100.dll
    sProcess exited (3221225781)
    eERROR: Der Prozess ist abgestürzt
    eERROR: CDB ist abgestürzt
    dNOTE: ENGINE SPONTANEOUS SHUTDOWN
    dState changed BY FORCE from InferiorRunOk(11) to EngineShutdownOk(22) [master]
    dState changed from EngineShutdownOk(22) to DebuggerFinished(23) [master]
    dQUEUE: FINISH DEBUGGER
    dNOTE: FINISH DEBUGGER
    dHANDLE RUNCONTROL FINISHED
    sDebuggen beendet.

    Has anyone any idea what causes this problem and how I can make CDB run in QtCreator? Thanks!



  • I think that the debugger have to be as the compiled program. If the program is 32 bit gdb have to be 32 bit.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.