maven引用的module之tomcat Debug有关问题

maven引用的module之tomcat Debug问题

场景:

项目A引用了模块B(module),部署项目A至tomcat,debug模式启动服务,在项目A中调试时使用到B模块的代码,B模块代码设置了断点,运行到B模块断点时,Eclipse总是显示source not found,无法查看源码的

 

解决方案:

1、项目右击-->Debug Configurations-->Srouce页签

2、点击Add-->选中Java Project-->选中引用的模块本项目(本例为B),OK确定

3、Apply应用