• 报错:Can't find a source file at "xxxxx“Locate the file or edit the source lookup path to include its location.


    调试问题:

    Can't find a source file at "/tmp/TI_MKLIB6sLCzz/SRC/exit.c"
    Locate the file or edit the source lookup path to include its location

    解决:来自ECLIPSE的WIKI:

    http://wiki.eclipse.org/CDT/User/FAQ#Debugging_C.2FC.2B.2B_Projects

    DETAIL:

    I'm using cygwin and when launching the debugger, it complains that it can't find the source file

    You must provide a mapping from /cygdrive/c to c:/ (or whatever your drive letter is).

    To do this,

    From the editor error page, select the "Edit Source Lookup Path..." button and select the "Add..." button Or, in the eclipse IDE, go to menu Window -> Preferences -> C/C++ -> Debug-> Common Source Lookup Path -> Add. From the list of lookup containers, choose Path Mapping and OK. You get a New Mapping in the list. Select the mapping and then Edit. In the Modify the path mappings dialog, select Add, and then enter: /cygdrive/c as the compilation path and c:/ as the local file system path. Select OK, OK, OK to finish the dialogs. Terminate the debug session and restart; it should find your source files now. This setting will apply to any debug sessions launched from this workspace.

    You can also modify the settings in each individual launch configuration. --------------------- 作者:XiaoyuLin 来源:CSDN 原文:https://blog.csdn.net/xiaoyulin/article/details/3747384 版权声明:本文为博主原创文章,转载请附上博文链接!

    C6678调试以及运行时报错Can't find a source file

    秀才 331 points     Muhua Chen   Muhua Chen

    我在跑自己写的helloworld以及CCS自带的6678的例子时

    可以进行单步调试,但过程中多次出现

    Can't find a source file at "/db/rtree/library/trees/xdcprod/xdcprod-q45/product/Linux/xdctools_3_24_05_45_eng/packages/xdc/runtime/Core-params.c" Locate the file or edit the source lookup path to include its location.

    这类问题

    并且点击运行,也会报错

    Can't find a source file at "/tmp/TI_MKLIB6sLCzz/SRC/exit.c" Locate the file or edit the source lookup path to include its location.

    我按照网上说的http://blog.csdn.net/xiaoyulin/article/details/3747384 1.From the editor error page, select the "Edit Source Lookup Path..." button and select the "Add..." button •Or, in the eclipse IDE, go to menu Window -> Preferences -> C/C++ -> Debug-> Common Source Lookup Path -> Add.

    2.From the list of lookup containers, choose Path Mapping and OK. You get a New Mapping in the list. 3.Select the mapping and then Edit. In the Modify the path mappings dialog, select Add, and then enter: •/cygdrive/c as the compilation path and •c:/ as the local file system path.

    4.Select OK, OK, OK to finish the dialogs. 5.Terminate the debug session and restart; it should find your source files now 设置了映射路径,错误依然存在,请大家帮帮忙,非常感谢

    秀才 331 points     Muhua Chen   Muhua Chen

    2013-1-10 16:00 回复

    4 个回复

    榜眼 26965 points     Allen Yin   Allen Yin

    2013-1-11 16:11

    如图 edit source lookup路径

    上述内容如果回答了您的问题,请点击标签栏“是”按钮。您的轻轻一点,会帮助我们更好的管理论坛内容,谢谢!

    回复

    秀才 331 points     Muhua Chen   Muhua Chen

    2013-1-13 14:06

    回复 Allen Yin:

    您好,非常感谢您的回答。

    点击Edit Source Lookup 进入后有多个添加选项,不知道该选哪一种,另外我并没有/tmp/TI_MKLIB6sLCzz/SRC/exit.c这个路径以及文件,该怎么处理?

    回复

    榜眼 26965 points     Allen Yin   Allen Yin

    2013-1-14 9:50

    回复 Muhua Chen:

    exit函数式标准库自带的,你可以不用关注

    上述内容如果回答了您的问题,请点击标签栏“是”按钮。您的轻轻一点,会帮助我们更好的管理论坛内容,谢谢!

  • 相关阅读:
    javascript模态窗体各种用法(转)
    AjaxControlToolKit之ConfirmButton效果用法
    AjaxControlToolKit之AutoCompleteExtender用法
    文章,记录按内容分页显示,根据文章内容按字数进行分页(转)
    AjaxControlToolKit之DragPanelExtender用法
    prototype.js 1.4版开发者手册(强烈推荐) (转自http://fredren.javaeye.com/blog/112479)
    JS拖动技术 关于setCapture (转自 剑胆琴心.Net学习笔记)
    Javascript 如何实现对象的拖动?(转自闪吧)
    phpsprintf、echo、print、printf 简单
    phpxdebug配置 简单
  • 原文地址:https://www.cnblogs.com/zhangbing12304/p/10761186.html
Copyright © 2020-2023  润新知