I want to debug webapp in eclipse. I got to the point where tomcat and webapp start inside eclipse in debug mode, but then breakpoints in webapp code have no effect.
More details
Webapp is a maven artifact, and I use the m2e plugin in eclipse to transition between maven and eclipse.
I managed to start the tomcat server from inside eclipse. Webapp starts up in tomcat beautifully, also in debug mode, if I choose this:
- in eclipse, right click on project
- Run as> Maven build ... (NOT "Maven build")
- a window will open. In the "Targets" text box, enter "tomcat7: run"
- click "apply"
- click "Run"
The tomcat server starts and its stdlog prints to a window inside eclipse. I can also stop it conveniently and run it again in debug mode. So far I want and what I expect.
Problem
I set a breakpoint in my webapp code and restarted tomcat in debug mode from inside eclipse. Now the breakpoint is not active: it does not have such a small mark that has active breakpoints, and I know that the code is executed, but it does not stop at the breakpoint.
source share