问题:  QT无法debug调试,出现:Unable to create a debugging engine提示。

 

分析:安装了VS 但是安装Windows SDK的时候默认没有安装CDB调试环境,如图:

QT 中出现Unable to create a debugging engine问题及解决

 

解决方法:安装Debuggers调试环境。

安装方法:在电脑 控制面板\程序\程序和功能 中找到如下图:

QT 中出现Unable to create a debugging engine问题及解决

 

右击选择更改:

QT 中出现Unable to create a debugging engine问题及解决

 

next:

QT 中出现Unable to create a debugging engine问题及解决

 

勾上Debug个ing Tools for Windows, 点击Change:

QT 中出现Unable to create a debugging engine问题及解决

 

等待安装完成即可:

QT 中出现Unable to create a debugging engine问题及解决

 

QT 中出现Unable to create a debugging engine问题及解决

 

 

 

二、配置QtCreator:
1、安装完成之后还需要去Qt中配置一下,如下:
在Qt中选择:Tool(工具) -> Options(选项) -> Kits  -> Debuggers,在其中添加刚才安装的WDK路径下的cdb.exe可执行文件:

QT 中出现Unable to create a debugging engine问题及解决

 

QT 中出现Unable to create a debugging engine问题及解决

 

 

 

 

 

 


2、然后在构建套件(Kit)中选择自动匹配到的编译器,我的是VS2017 的MSVC,在调试器中选择刚才添加进来的cdb Debugger,确定即可实现QT Creator的Debugger调试。

 

QT 中出现Unable to create a debugging engine问题及解决

 

QT 中出现Unable to create a debugging engine问题及解决

 

相关文章:

  • 2021-12-28
  • 2021-07-04
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2021-05-09
  • 2021-07-13
  • 2021-10-03
  • 2021-04-20
  • 2021-10-09
相关资源
相似解决方案