title: Best way to debug Java web application packaged as a WAR using Eclipse and Maven?
body: <p>I've not built a Java web application before, but I have it complete enough to test and Maven is building my WAR file just fine.  It is a multi-module Maven project and the dependent modules all have their JAR files in the WEB-INF/lib directory of the WAR.  </p>
  
  <p>So everything seems fine, but how to debug?  I know how to (from the command line) run the WAR in Tomcat on my machine.  I also think I know how to set up and run the Maven Jetty plugin from the command line as well.  But how best to debug...with all the break points and variable inspection I love with Eclipse?</p>
  
  <p>Is there some kind of launch configuration I should create, or do I attach the debugger remotely?  Is there something in Eclipse that can help...like a plugin?  </p>