Windows 7 64-bit configuration to run and debug within Qt 5.5.1



  • I am working on a Windows 7 64-bit machine and can only use Visual Studios 2010 Express or Visual Studios 2010 Professional. I have been learning Qt and successfully creating, building, and running projects within the QtCreator. I was given a project that properly exectues outside of Qt but when I try to debug/run within Qt, a window appears reading "The CDB process terminated." and my output window only shows "Press <RETURN> to close this window..." the project never appears to execute.

    When I go to Tools>Options>Build & Run here are my settings

    • Kits: Desktop Qt 5.5.1 MSVC2010 32bit

    • Compilers: Microsoft Visual C++ Compiler 10.0 (x86)
      Microsoft Visual C++ Compiler 10.0 (amd64)
      Microsoft Visual C++ Compiler 10.0(x86_amd64)

    • Debuggers: Auto-detected CDB at C:\Program Files (x86)\Debugging Tools for Windows (x86)\cdb.exe
      Auto-detected CDB at C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\cdb.exe
      Auto-detected CDB at C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\cdb.exe
      Auto-detected CDB at C:\Program Files \Debugging Tools for Windows (x64)\cdb.exe

    I know others have gotten this project to debug and run within Qt so I think it is a configuration issue but I don't know where. Please help.

    My problem is like this thread https://forum.qt.io/topic/69130/unexpected-cdb-exit/7
    but they did not find a solution. I am a new user and would really appreciate the guidance.



  • This post is deleted!

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Just a silly idea, but check that your kit is using the correct version of cdb.



  • @SGaist The auto-detected kit has the details as follows:
    Name: Desktop Qt %{Qt:Version} MSVC2010 32bit
    Device type:Desktop
    Device:Local PC
    Compiler: Microsoft Visual C++ Compiler 10.0 (x86)
    Debugger: Auto-detected CDB at C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\cdb.exe

    • which I then changed to Auto-detected CDB at C:\Program Files \Debugging Tools for Windows (x64)\cdb.exe

    I change the debugger to the 64 bit one and now I am not getting the error " CDB process terminated ". Now it starts debugging and ends immediately and displays a window with the following:

    Location: c\Qt\Qt5.5.1\Tools\QtCreator\bin\qtcreator_process_stub.exe
    "Press <RETURN> to close this window..." 
    

    I am not sure where to go from here because my project is not executing. Thank you for the help with the CDB, I am very much a beginner.


  • Lifetime Qt Champion

    What does you code do ?



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