zoukankan      html  css  js  c++  java
  • 与SVN相关的程序的调试问题【转】

    解决eclipse中出现Resource is out of sync with the file system问题。

    分析:
    有时候因为时间紧迫的原因,所以就没去管它,今天再次遇到它,实在看着不爽,所以想了办法解决此问题!

    这个问题是由于eclipse中文件不同步引起的。在eclipse中,工程文件是由eclipse自动扫描添加的,如果在外部修改了工程目录中的文件但又关闭了自动刷新功能,则会引起文件不同步,从而搜索时出现Resource is out of sync with the file system问题(其它功能可能也会如此)。此外,在外部没有修改eclipse工程中的文件也有可能引起该问题。

    解决方法:
    有两种解决方法:
    1)手动刷新。即在eclipse的工程目录中,右键refresh(或者按下F5)。
    2)配置eclipse的选项:
        a)eclipse启动时,刷新workspace,即勾选:window—>preferences—>general—>startup and shutdown—>refresh workspace on startup;
        b)window—>preferences—>general—>workspace中:勾选选项:refresh using native hooks or polling和refresh on access;

    本人的eclipse版本是:eclipse SDK 3.7.0

    用debug调试的时候出现了一个问题---source not found

    上网查了一下,解释如下:

    我们的程序在调试的时候,可能有调用别人代码的时候,如果你在debug时进入了别人的程序,而别的这个库又没有编译成debug模式,那就比较遗憾了,你肯定会得到这个提示,这个时候step over就好了。

    分析:

    我遇到这个问题是因为,Eclipse开了两个一模一样的工程(当然,名字不同),然后debug调试的时候,不知道下一步调用的具体是哪一个程序代码,或者其调用的是不是当前工程中的程序文件,就会出现该问题。

    解决方案:

    Debug视图下指定java project路径就可以了,具体如下:

    Debug 视图下

    -》在调试的线程上右键单击

    -》选择Edit Source Lookup Path

    -》选择Add

    -》选择Java Project

    选择相应的Project 进行OK确定即可

    2Eclipse中右键工程无反应,导致Eclipse卡死(未响应) 2014-12-28

    以前也遇到过这个问题,今天又遇到,想总结一下。

      在网上查了一下,导致卡死的原因有很多,没有一个终极解决方案。试了几个方案,还是没能解决。这里说一下个人的解决方案,简单粗暴,但是不一定适用其它情况,仅作记录。

     

    解决方案1:删除Eclipse中的项目,但是不要删除workspace中的源文件,然后重新导入项目到Eclipse中。OK,完美解决。

     

    3解决eclipse Resource is out of sync with the file system 报错问题  2014-12-28

     

      在Eclipse中打开database.properties文件失败,显示:Resource is out of sync with the file system  。

     

      这是文件系统不同步的问题,是因为在eclipse之外对工程中的resource进行修改引起的;但是,有时没有在eclipse之外进行修改,也会报类似的错误。 
    解决办法:需要手动刷新一下资源管理器。 
    (1)在eclipse中,工程目录右键,选择F5(refresh) 
    (2)设置eclipse自动刷新。 
     通过Window->Preferences->General->Workspace,选中Refresh automatically

     

      eclipse中的项目无法查看源文件,报错:resource is out of sync with the file system。唯一的问题,在eclipse工程之外的地方修改了源文件但是没有刷新。MyEclipse自带帮助文档:
    Don't forget to refresh!
    Whenever you use external tools to modify workspace files, you must perform a Refresh from within Eclipse to make the workspace aware of the changes.If you get a resource out of sync error in Eclipse it is a sign that there are resources in Eclipse that have been modified outside of Eclipse. 
    One solution is to perform a refresh (available from a resource's popup menu) on any resources or projects that where modified outside of Eclipse.
    There is also a preference to refresh automatically. 但是设置为自动刷新在工程比较大时代价有点大! Window->Preferences->General->Workspace,选中Refresh automatically。

     

    Ps:没试过,因为重新导入项目后问题未重现。

     

    4、Eclipse项目上有红色叹号  2015-3-14

    产生原因:从外部导入了工程,但展开又没有详细的指明任何错误

    直接原因:工程中classpath中指向的包路径错误

    解决方案:右键项目名称 BuildPath ---> Configure Build Paht...

    找到Libraries中出现红色叉号的包, 选中然后Remove掉,OK,问题解决。

  • 相关阅读:
    codeforces 669C C. Little Artem and Matrix(水题)
    codeforces 669B B. Little Artem and Grasshopper(水题)
    oracle drop table recyclebin恢复
    odu恢复drop表--不通过logmnr挖掘object_id
    odu恢复drop表--通过logmnr挖掘object_id
    odu恢复delete 表
    GO学习-(7) Go语言基础之流程控制
    GO学习-(6) Go语言基础之运算符
    GO学习-(4) Go语言基础之变量和常量
    GO学习-(3) VS Code配置Go语言开发环境
  • 原文地址:https://www.cnblogs.com/sylvandu/p/5610115.html
Copyright © 2011-2022 走看看