tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Trivial Update of "FAQ/Developing" by KonstantinKolinko
Date Sun, 28 Mar 2010 02:30:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "FAQ/Developing" page has been changed by KonstantinKolinko.
The comment on this change is: Prevent NetBeans term from turning into a link. Updated Jasper
phrase wording..
http://wiki.apache.org/tomcat/FAQ/Developing?action=diff&rev1=8&rev2=9

--------------------------------------------------

  Make sure 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(Q3)>>'''How do I remotely debug Tomcat using NetBeans?'''
+ <<Anchor(Q3)>>'''How do I remotely debug Tomcat using !NetBeans?'''
  
- This answer assumes that you have correctly set up a NetBeans project and that you know
how to use the NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html
and read up on how to use NetBeans and its debugger.
+ This answer assumes that you have correctly set up a [[http://netbeans.org/|NetBeans]] project
and that you know how to use the !NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html
and read up on how to use !NetBeans and its debugger.
  
  Make sure that Tomcat is started in debug mode as described above, that your application
is deployed, and that the sources are all defined as resources in your application. If you
have a servlet or JSP file, set a breakpoint where you think a problem might be occurring.
Go to "Run->Attach Debugger". A dialog pops up to let you specify the following options:
  
      * Debugger: JPDA Debugger
-     * Connector: SocketAttach
+     * Connector: !SocketAttach
      * Host: The IP address of the host your Tomcat installation is running on (127.0.0.1
if it is your local machine).
      * Port: The port of your Tomcat debugging interface, which should be 8000 if you've
followed the instructions above.
  
  When you press OK, you have a debugging connection very similar to local debugging.
  
- Note that NetBeans has a second option -- you can debug JSP files and servlets locally using
a Tomcat server that is bundled with the IDE. When you debug a JSP file or servlet in the
IDE, the bundled Tomcat server automatically starts in debug mode, and the debugger connects
to it.
+ Note that !NetBeans has a second option -- you can debug JSP files and servlets locally
using a Tomcat server that is bundled with the IDE. When you debug a JSP file or servlet in
the IDE, the bundled Tomcat server automatically starts in debug mode, and the debugger connects
to it.
  
  
  <<Anchor(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 [[http://tomcat.apache.org/tomcat-6.0-doc/config/index.html|Tomcat
Configuration Reference]]. By default there is a single backgroung processing thread that
run by Engine. See its [[http://tomcat.apache.org/tomcat-6.0-doc/config/engine.html|configuration]]
for the default delay value.
  
- Monitoring intervals for the JSP pages are set in the [[http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html|Jasper
servlet configuration]] in `web.xml`.
+ Interval that controls reloading of the changed JSP pages is set in the [[http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html|Jasper
configuration]] in `web.xml`.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message