Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated

...

This answer assumes that you have a project set up with all of the fixings and have some idea of what you're doing in this respect. If not then thats really outside the scope of this topic and more in the scope of you needing to go to [eclipse.org|http://eclipse.org] and read up on how to use your ide, and maybe practice a little bit before you come back to this. We 're are also going to assume you have some idea of what a debugger is and how to use one.

Make sure tomcat Tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to "Run->Debug Configurations...". Click on "Remote Java Applications", then click "New". Type in the title and all. Notice that port 8000 from the Tomcat instructions. Save and run. Eclipse will connect to the VM that Tomcat is running under. Wow, that was easy! Now go type the url to submit to your servlet or whatever in your browser. Boom you hit the breakpoint right? Have fun!

...

Anchor
Q4
Q4
How do I change the monitoring interval for modified resources and application reloading?

Monitoring interval for application reloading is controlled by the backgroundProcessorDelay property on Context element or on its parent containers: Host and Engine. See Tomcat Configuration Reference. By default there is a single backgroung processing thread that run by Engine. See its configuration for the default delay value.

Monitoring intervals for the JSP pages are set in the Jasper servlet configuration in web.xmlModify the checkInterval attribute value on the relevant Loader element in your web application configuration file (yourapp.xml), or in the main configuration file %CATALINA_HOME%/conf/server.xml if that is the one you're using. For more information, please see the [Loader configuration reference|http://tomcat.apache.org/faq/config/loader.html].