Blacktempel
Blacktempel

Reputation: 3995

QT - Unknown debugger type "No engine"

Recently I have re-installed QT (5.5.1 MSVC 2013, 32 bit, rev. b52c2f91f5) on my PC and installed the debugging tools of Microsoft.

QT (QT Creator) can auto-detect these just fine.

Auto-detect

When trying to start the debugger with either the default shortcut F5 or clicking it manually, it throws an error that the debugger could not be run. (Compiling works fine, debugging not at all)

Debugger could not be started

No debugger-engine of type "No engine" could be created.


(Running Windows 8.1 with VS2013/VS2015 installed - QT working with VS2013 32&64 bit).

On my work PC I did the same process a few weeks ago and had no problems at all.

What could cause this problem ? Yet I have only found questions with the same problem related to other compilers.

Upvotes: 19

Views: 27003

Answers (5)

Sehran Agayev
Sehran Agayev

Reputation: 11

I had a problem in windows 7 but I've solved it:

  1. Download Windows driver kit https://www.microsoft.com/en-us/download/details.aspx?id=11800
  2. Add your debugger -
  3. Change auto-detected kit debugger to your added debugger

Upvotes: 1

Ispas Claudiu
Ispas Claudiu

Reputation: 1998

I installed Debugging Tools for Windows and the debugger appeared under Manage Kits > Build & Run > Debuggers but it didn't added in the kits so I had to go to Manage Kits > Build & Run > Kits then select the desired kit and under Debugger I had to select the debugger. Initially the debugger is set to "None".

Upvotes: 0

Niels Holst
Niels Holst

Reputation: 626

  1. Close Qt Creator.
  2. In the folder where your .pro file resides, there will be some .pro.user and .pro.user.x files. Delete them all. Keep only your .pro file.
  3. Start Qt Creator and open your .pro file. Qt Creator will ask you to reconfigure your project. Accept that.
  4. Now you can debug again, or at least I could; the problem happened to me when I had just updated Qt Creator.

Upvotes: 8

Dvir
Dvir

Reputation: 3139

It may point to a missing component in your installation process or an actual defect in Qt:

Option #1

Install a debugger.

If you are installing 5.5.1 for Visual Studio 2013 64 or 32bit, 2012 32bit, 201032bit. Then install windows Debuggers.

Qt will detect automatically the compiler and Debugger.

To set manually Tools->options->build&run->kits->set one of auto detected , then you can see all.

Source: https://forum.qt.io/topic/59974/unknown-debugger-type-no-engine/11

Option #2

Unable to create a debugger engine of the type "No engine"

in the past pointed to a bug in the Qt Creator, if you'll update it may be fixed.

I'm also aware that alternatively, it may be solved by updating to Python 2.7.1.

Upvotes: 18

Luke Dupin
Luke Dupin

Reputation: 2305

Answering the title of this question, not the person asking it.

I had the exact same error message on arch linux 64 trying to compile for arm android.

First I ran the gdb debugger in the command line to get the root issue:

~/tools/android/android-ndk-r12/prebuilt/linux-x86_64/bin/gdb-orig:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

libncurses is the issue! (As of 6/24/2016) Arch linux is on ncurses 6.0-4. Later you'll also find libtinfo.so.5 is missing.

At this point, the method for fixing the problem is up to you; I don't like using a bunch of AUR repos, so I executed a simple hack. We're forcing the library linkage that was in libncurses 5x to point at 6x.

Please ensure you don't overwrite anything before running these commands

cd /usr/lib
sudo ln -s libncursesw.so.6.0 libncurses.so.5
sudo ln -s libncursesw.so.6.0 libtinfo.so.5

Re-run your arm gdb, and it should work.

Upvotes: -2

Related Questions