Couldn't find an answer to this using the Search facility, so here goes:
Let's say you have a servlet which talks to some business objects. All of this is running in Tomcat. After 3 days I am already tired of debugging servlets using logfiles. I want to debug by stepping through the servlet and business object code in an Eclipse IDE. I am running Tomcat 5 and Eclipse 3.2. How does one do this?
1. Are extra Eclipse plugins necessary? or do you set this up somehow in Eclipse configuration files?
Yes, you will need to get the tomcat plugin for eclipse and put it into the plugins folder of eclipse. I am currently debugging servlet and other business class using the same technique. If you need detailed steps to configure tomcat plugin with eclipse, then mail me at xxx@xxx. I will be more then happy to help you out in this matter.
Regards Prem SCJP1.4:88%
[Deleted Email address. Please use this forum so that the whole community can benefit. Thanks, Ilja] [ November 11, 2006: Message edited by: Ilja Preuss ]
Which version of eclipse are you using? If you are using the web tools version you do not need any special plugins. After defining your server debugging is simple. Set your break points and start you server in debug mode(use the debugging perspective).
Another option is to use the sysdeo tomcat plugin.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Apr 08, 2003
Thanks very much, all of you. I will try out several of these options.
Joined: Apr 08, 2003
I have tried the Sysdeo plugin and have found little wrong with it. Thanks for the tips!
You don't need any plugin AFAIK. Eclipse has remote debugging capabilities (or is that another plugin? ) which work quite well (I use them almost daily, all I'm missing is a way to run 2 remote debuggers side by side in order to debug 2 remote applications talking to each other at the same time).
Joined: Jul 11, 2001
Originally posted by Jeroen T Wenting: You don't need any plugin AFAIK.
That's true. It's just easier with the plugin.
Jeroen T Wenting
Joined: Apr 21, 2006
could be. I've got Callipso installed from the moment I installed 3.2 Never used the built-in server options though, the servers we use at work aren't supported (Resin 2 and 3, JBoss 3.2.7 (the JBoss 3 support doesn't work with that build), and WebLogic 6 (I know it's old, it's legacy)).