Codelite问题 - 未指定可执行文件,请使用'target exec

时间:2015-04-20 05:46:58

标签: c++ debugging codelite

我刚刚在我的Windows 8.1中安装了codelite。它显示错误

  Debugger exited with the following error string:
   "No executable 
   specified,use 'target exec'"

我搜索并找到了这个(another stackoverflow question)我做的和那里提到的一样,但没有什么对我有用。我创建了一个新项目并选择了Simple executable(g ++)和GNU debugger作为默认调试器。任何人都可以帮助我与此同时,它显示“程序退出并返回代码:4199040”。

3 个答案:

答案 0 :(得分:3)

您似乎没有提供运行/调试的可执行文件:

转到

Project settings... -> Common settings -> General

并填写

的正确信息
Executable to Run / Debug

答案 1 :(得分:0)

在命令提示符中:

  1. gdb(程序类型:示例python或c或c ++等) 如果我正在运行python程序,那么命令将是 gdb python
  2. 然后(gdb)运行program_name.py

答案 2 :(得分:0)

Jarod42提供了一个“足够接近”的答案。在Linux上,步骤似乎是:

Workspace -> Open Active Project Settings... -> General

并填写正确的信息

Executable to Run / Debug
相关问题