eclipse在debug时,运行到端点时出现Source not found

1.工具:eclipse javaEE
    Eclipse Java EE IDE for Web Developers.
    Version: Juno Service Release 2
    Build id: 20130225-0426
    (c) Copyright Eclipse contributors and others 2005, 2013.  All rights reserved.
    Visit http://www.eclipse.org/webtools

2.项目环境:maven 构建、一个前台web项目,多个后台服务项目。每个项目单独一个工程。
3.问题:在其中一个后台服务项目程序中设置断点,以debug maven build 模式启动所要调试的项目,前台界面点击后进入断点提示:Source not found
4.解决:
  1.在提示Source not found的窗口下面有个按钮"Edit Source Lookup Path...",如下图。

eclipse在debug时,运行到端点时出现Source not found
  2.点击进入,弹出如下图。

eclipse在debug时,运行到端点时出现Source not found
  3.点击Add按钮,弹出如下图窗口,选择workspace。(根据情况选择,一般是选择这个)

eclipse在debug时,运行到端点时出现Source not found
  4.点击ok后退出,就可以调试了。

  5.调试每个项目都会出现如上问题,依次设置就可。

20160912 - 一别经年  ztl

转载于:https://my.oschina.net/u/1014520/blog/745760