简体   繁体   English

Qt Creator - 无法使用调试器:program.exe不是可执行格式:文件格式无法识别

[英]Qt Creator - Can't use debugger: program.exe not in executable format: File format not recognized

Using Qt version 5.7.0 for Desktop Windows 10 使用Qt版本5.7.0 for Desktop Windows 10

I can run can't use the debug option (F5), it displays in a dialog: 我可以运行不能使用调试选项(F5),它显示在一个对话框中:

"D:/DEV Programas/build-GIFS-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug/debug/GIFS.exe": not in executable format: File format not recognized

I can't use at all the debugger. 我根本无法使用调试器。 What can I do? 我能做什么?
Sorry I don't display more information. 对不起,我没有显示更多信息。 I don't know much how Qt Creator works and what info you may need to help me. 我不太了解Qt Creator的工作原理以及您可能需要哪些信息来帮助我。

you are in debug mode for build, but you are running the release executable you have to configure Qt Creator ->Project->run and the Add->custom Executable then choose the executable inside you debug directory see picture below 你正在调试模式下进行构建,但是你正在运行发行版可执行文件,你必须配置Qt Creator - > Project-> run和Add-> custom Executable然后选择你调试目录里面的可执行文件,见下面的图片

在此输入图像描述

I've found the solution. 我找到了解决方案。 I "just" had to reinstall Qt. 我“只是”不得不重新安装Qt。 Not Qt creator, but the framework itself. 不是Qt的创建者,而是框架本身。 Now I can use the debugger. 现在我可以使用调试器了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM