C++ QT - 未知的调试器类型“无引擎”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34471247/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 14:23:07  来源:igfitidea点击:

QT - Unknown debugger type "No engine"

c++qtdebuggingc++11visual-studio-2013

提问by Blacktempel

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 (5.5.1 MSVC 2013, 32 bit, rev. b52c2f91f5)并安装了微软调试工具。

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

QT(QT Creator)可以自动检测这些就好了。

Auto-detect

自动侦测

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

尝试使用默认快捷方式启动调试器F5或手动单击它时,会引发调试器无法运行的错误。(编译工作正常,根本没有调试)

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).


(在安装了 VS2013/VS2015 的情况下运行 Windows 8.1 - QT 使用 VS2013 32 和 64 位)。

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

在我的工作 PC 上,几周前我做了同样的过程,完全没有问题。

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

什么可能导致这个问题?然而,我只发现了与其他编译器相关的相同问题的问题。

采纳答案by DeJaVo

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

它可能表示安装过程中缺少组件或 Qt 中的实际缺陷:

Option #1

选项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.

如果您为 Visual Studio 2013 64 或 32 位、2012 32 位、201032 位安装 5.5.1。然后安装windows 调试器

Qt 会自动检测编译器和调试器。

要手动设置Tools->options->build&run->kits->set one of auto detected,然后您可以看到所有。

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

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

Option #2

选项#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.

过去指出 Qt Creator 中的一个错误,如果你更新它可能会被修复。

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

我也知道,或者,它可以通过更新到 Python 2.7.1 来解决。

回答by Niels Holst

  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.
  1. 关闭 Qt Creator。
  2. 在 .pro 文件所在的文件夹中,会有一些 .pro.user 和 .pro.user.x 文件。将它们全部删除。仅保留您的 .pro 文件。
  3. 启动 Qt Creator 并打开您的 .pro 文件。Qt Creator 会要求您重新配置您的项目。接受这一点。
  4. 现在您可以再次调试,或者至少我可以;当我刚刚更新 Qt Creator 时,问题发生在我身上。

回答by Sehran Agayev

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

我在 Windows 7 中遇到了问题,但我已经解决了:

  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
  1. 下载 Windows 驱动程序工具包 https://www.microsoft.com/en-us/download/details.aspx?id=11800
  2. 添加调试器 ——
  3. 将自动检测的套件调试器更改为您添加的调试器

回答by Ispas Claudiu

I installed Debugging Tools for Windowsand the debugger appeared under Manage Kits > Build & Run > Debuggersbut it didn't added in the kitsso I had to go to Manage Kits > Build & Run > Kitsthen selectthe desired kitand under DebuggerI had to select the debugger. Initially the debugger is set to "None".

安装了 Windows 调试工具,调试器出现在下面,Manage Kits > Build & Run > Debuggers但它没有添加到工具包中,所以我必须去Manage Kits > Build & Run > Kits然后选择所需的工具包,然后Debugger我必须选择调试器。最初调试器设置为“无”。

回答by Luke Dupin

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.

我在试图为 arm android 编译的 arch linux 64 上有完全相同的错误消息。

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

首先,我在命令行中运行 gdb 调试器来解决根本问题:

~/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.

libncurses 是问题所在!(截至 2016 年 6 月 24 日)Arch linux 在 ncurses 6.0-4 上。稍后您还会发现缺少 libtinfo.so.5。

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.

此时,解决问题的方法取决于您;我不喜欢使用一堆 AUR 存储库,所以我执行了一个简单的 hack。我们将 libncurses 中的库链接强制 5x 指向 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.

重新运行你的 arm gdb,它应该可以工作了。