Prabhu
Prabhu

Reputation: 717

QT with debugger

I am new to QT

I downloaded online installer for QT windows in the location

http://qt.nokia.com/downloads

I just tried simple program like printin hello world.

I Could execute the program. But I am not able to debug it. I am getting errors like

None of the debugger engines 'Cdb engine, Gdb engine' capable of debugging binaries of the type 'x86-windows-msvc2008-pe-32bit' is configured correctly.

Should I download a different version for debugging or Did I miss any procedure to include debuging facility?. Please help me to install QT with debugger.

Upvotes: 3

Views: 1994

Answers (4)

Aleksei Zabrodskii
Aleksei Zabrodskii

Reputation: 2228

It looks like there was a bug in QtSDK installer at some point. Firstly, try updating. Secondly, try this:

  1. open Qt Creator and go to Tools → Options... → Build & Run, select Tool Chains tab;
  2. there should be Auto-detected list, select in there Mingw as GCC for Windows targets and click Clone button;
  3. Now select cloned tool chain, you should be able edit specific fields in the bottom;
  4. Click Browse... right to Debugger field and select %QTDIR%\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe;
  5. Save your edits, create a new project (don't forget to select cloned tool chain) and try debugging.

Does it work?

Upvotes: -1

TonyK
TonyK

Reputation: 17114

Go to Tools -> Options -> Tool Chains, and tell us what you see. I have only ever used Qt with mingw, not Visual Studio, so I don't know if it will help, but look at this question and its resolution.

Upvotes: 1

quinmars
quinmars

Reputation: 11563

I had the same problem with QtCreator. An Update of the QtSDK solved it for me. You find the update mechanism in a menu of QtCreator.

Upvotes: 1

user123_456
user123_456

Reputation: 5795

Do you have Visual Studio installed? You need to have it installed so you can use this engines to debug.

Here is the link for the Visual studio: LINK

Enjoy!

Upvotes: 1

Related Questions