在Eclipse中调试C-“找不到源文件”

时间:2019-10-28 19:57:58

标签: c++ c eclipse debugging

this guide之后,我已经安装了Eclipse for C / C ++ Developer和cygwin。另外,在Preferences > C/C++ > Enviroment中,我添加了所有变量。我在cygwin中将/ c挂载到c:上,现在当我在终端中键入mount时,将得到以下信息:

$ mount 
C:/cygwin64/bin on /usr/bin type ntfs (binary,auto) 
C:/cygwin64/lib on /usr/lib type ntfs (binary,auto) 
C:/cygwin64 on / type ntfs (binary,auto) 
C: on /c type ntfs (binary,user)

我的程序在Eclipse中构建并成功运行,但是当我尝试调试(在第一行添加断点)时,出现错误

Can't find a source file at "/cygdrive/c/Users/steve/eclipse-workspace/myProgram/myProgram.c" 
Locate the file or edit the source lookup path to include its location.

然后我发现this guide处理此错误,因此我的路径映射为/cygdrive/c C:\

但是,我现在在尝试调试时出现以下错误

Can't find a source file at "/usr/src/debug/gcc-7.4.0-1/libgcc/config/i386/cygwin.S" 
Locate the file or edit the source lookup path to include its location.

我不知道从这里去哪里,有人可以帮我吗?

0 个答案:

没有答案