解决eclipse调试c++程序出现“No source file named” error
来源:互联网 发布:淘宝网海外版怎么设置 编辑:程序博客网 时间:2024/06/05 22:59
http://blog.initm.com/eclipse-error-debug/
前些天遇到的问题这是,早就应该写了,但是需要做的事情太多,一直拖到要走了,拖不动了,写!和上一篇文章是相关的,因为我换了一个编辑器eclipse,第一次用,所以遇到一些问题,提示出现No source file named 怎么解决呢?
试了几次没有效果之后开始百度。中文的没有找到相关的文章,于是开始找英文的,英文很水,但是能看懂大概意思。下面我来说一下解决方法:
1.首先我们打开Debug Configurations
2.在弹出的窗口中选择Select other
3.然后在弹出的对话框中勾选Use configuration specific settings 然后选择Standard Create Process Launcher 确定
4.然后打开Debugger选项卡,如下设置一下
5.然后勾选这个Use full file path to set breakpoints
OK 搞定
参考资料:
http://stackoverflow.com/questions/12965726/no-source-file-named-error-debugging-eclipse-cdt
http://wp.brodzinski.net/eclipse/source-file-named-main-c-gdb-error/
„NO SOURCE FILE NAMED” – GDB ERROR IN ECLIPSE LUNA
Recently I came across a quite difficult problem during setting up a debug configuration for my STM32 ARM development environment in Eclipse.
When I was running a I always got „file not found” error in GDB console.
GDB error:
Function "0x8000000" not defined.
No source file named C:\\ARM\\workspace\\blinky\\src\\main.c.
Solution:
Go to your Debug Configuration -> Configure Workspace Settings
Expand Run/Debug -> Launching -> Default Launchers
Select GDB Hardware debugging -> Debug (or Release depending on your Configurations)
Select option Legacy GDB Hardware Debugging Launcher
Then click Apply and OK
Then click Apply and OK
Now debug should work without any problems.
Related links:
http://stackoverflow.com/questions/19864204/eclipse-mingw-cdt-gdb-and-problems-with-debugging
- 解决eclipse调试c++程序出现“No source file named” error
- Eclipse - CDT使用GDB调试C++的问题-无源文件命名(No source file named)
- GDB调试问题No source file named file.c. Make breakpoint pending on future shared library load? (y or [n]
- eclipse 调试java程序出现Source not found.如何解决?
- 解决调试android程序,出现错误"source not found"
- hadoop+eclipse 调试程序出现的问题warn: no job jar file set 以及 点击run on hadoop 无反应
- 解决eclipse调试程序时source not found的问题
- Android 单步调试出现The jar file ....android.jar has no source attachment
- 【图】解eclipse 查看原始类出现The jar file rt.jar has no source attachment
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- Eclipse 查看源码出现 The jar file rt.jar has no source attachment 解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- 解决调试android程序,出现错误“No Launcher activity found”
- CCS在调试DSP程序过程中出现No source available for "0x712148" 问题
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- EAS BOS 在list界面增加过滤、排序及删除默认的过滤条件,及右键弹出
- Kubernetes
- Spring实战4之SpringMVC篇
- Struts2中ActionContextCleanUp作用
- DB2 执行Sql 语句中时的with ur
- 解决eclipse调试c++程序出现“No source file named” error
- 基于bootstrap的前端分页。带省略号和上下页。
- Android:TextView
- 公共网络开放的WebService接口
- java案例-实现斗地主游戏案例
- jQuery Validate 修改错误显示样式为tooltip
- 【CC2640R2】CC2640r2lp_stack和CC2640r2lp_app包含文件路径比较
- Spark SQL中DataFrame API 的解析
- 三星线刷卡刷常见刷机注意事项及其步骤(不断更新)