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] Update of "FAQ/Developing" by NikolayG
Date Tue, 25 Nov 2008 15:31:47 GMT
Dear Wiki user,

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

The following page has been changed by NikolayG:
http://wiki.apache.org/tomcat/FAQ/Developing

------------------------------------------------------------------------------
  
  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 [[http://eclipse.org 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 also going to assume you have some idea of what a debugger is and how to use one.
  
- 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...". 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!
+ 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?'''

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


Mime
View raw message