C++ eclipse 调试器给出以下错误。“启动程序名称”遇到...启动命令时出错:gdb --version
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20250346/
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
Debugger for C++ eclipse gives the following error. 'Launching program name' has encountered a ... Error while launching command: gdb --version
提问by user2748943
I've always worked around the debugger issue, but now it has gotten too annoying. I'm working on more complex programs and can't anywhere if I cant debug my programs. Has any one else been able to fix this issue in eclipse? It works for java, but not more my C++ plugin from minGW
我一直在解决调试器问题,但现在它变得太烦人了。我正在处理更复杂的程序,如果我不能调试我的程序,就不能在任何地方。有没有其他人能够在 eclipse 中解决这个问题?它适用于 java,但不是更多来自 minGW 的 C++ 插件
Debbugger for C++ eclipse gives the following error. 'Launching program name' has encountered a problem. Error while launching command: gdb --version
C++ eclipse 的调试器给出以下错误。“启动程序名称”遇到问题。启动命令时出错:gdb --version
采纳答案by alu
Assuming you are using Windows and have MinGW installed, you only need to locate the gdb executable in the MinGW bin folder. This can be done on the "Main" tab in the "Debugger" configuration of Eclipse:
假设您使用的是 Windows 并安装了 MinGW,您只需要在 MinGW bin 文件夹中找到 gdb 可执行文件。这可以在 Eclipse 的“调试器”配置中的“主要”选项卡上完成: