title: debug java application while startup
body: <p>It might sound a bit too naive, but I always had a tough time to debug a java class during server startup. Here is the scenario:</p>
  
  <ul>
  <li>The java application is hosted on a tomcat server.</li>
  <li>Suppose there is a class which is invoked while the tomcat server starts up.</li>
  <li>As soon as I stop the tomcat instance for a restart, the eclipse debug stops and I can start the debug only once the application is up and running.</li>
  <li>Now how do I debug this class on eclipse?</li>
  </ul>
  
  <p>Thanks for you help in advance.</p>