title: How to debug WAR application inside eclipse?
body: <p>I have seen many online tutorial explaining how to use eclipse to do remote debug of WAR file.</p>
  <p>But what I want to know is how to do the debug inside eclipse just as debugging a JAVA application? I have Tomcat 7 configured in my eclipse as a server. And I have tested it with a sample servlet program successfully meaning I can set breakpoint in the source code and run into it.</p>
  <p>My WAR application is built by gradle. I have imported the gradle project into my eclipse and build it ok inside eclipse by running gradle task inside &quot;gradle tasks view&quot;. I added the project into the server. However, when I try to use &quot;Debug as &gt; Debug on Server&quot;, it fails and the breakpoint is not get hit. Anyone could share the experience to debug WAR inside eclipse?</p>