Eclipse C debug报错Can‘t find a source file at “xxxxx“Locate the file or edit the source lookup path

笔记备忘
1、操作入下:Debug configerations进入如下界面:
双击你的放置器对应的选项,添加新的选项,在source位置记得添加如下选项。
在这里插入图片描述
2、解决完上面报错还提示如下:no source for main
**step1、**工程右击选择properties,C/C++ Build->Setting->Debugging右侧 Debug level 下拉选择Default(-g)
在这里插入图片描述
step2工程右击选择properties,C/C++ Build->Setting->Optimization 设置优化等级为0
在这里插入图片描述
3、其他页面的配置附图如下:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_49047167/article/details/121289524