How to solve Source not found error during debug in Eclipse

If you run your web application using embedded Java EE server in Maven (like Tomcat or Jetty) and try to run it in debug mode, once you hit some breakpoint, you will encounter this error: "Source not found".

If you run your web application using embedded Java EE server and try to run it in debug mode, once you hit some breakpoint, you will encounter this error: "Source not found". Just simply press "Edit Source Lookup Path ...", add your project and restart your web application. And now it works.