Remote debugging using Eclipse
posted 20 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I have an app which uses struts and runs on Tomcat.The way we do our work is as following :
1.)We make some changes and do an ant build.
2.)The build file compiles all the java files,makes jar file of all java classes and creates a few directories including WEB-INF.It places jar files ,configuration files inside WEB-INF.
Lastly,it packages everything into a single war file and places it inside webapps directory of Tomcat.
3.)When Tomcat starts,the war file is exploded into the same structure as was built by the build.xml script.
4.)Can Eclipse help me in doing the debugging of my app without having to create any extra directories anywhere?
1.)We make some changes and do an ant build.
2.)The build file compiles all the java files,makes jar file of all java classes and creates a few directories including WEB-INF.It places jar files ,configuration files inside WEB-INF.
Lastly,it packages everything into a single war file and places it inside webapps directory of Tomcat.
3.)When Tomcat starts,the war file is exploded into the same structure as was built by the build.xml script.
4.)Can Eclipse help me in doing the debugging of my app without having to create any extra directories anywhere?
posted 20 years ago
Yes it can.
However, since you are talking about a web app you should be able to connect remotely using a plug-in like MyEclipse to control a number of different app servers (running locally) while you are developing. You should probably be developing Cactus and jWebUnit tests as well while you are developing so you can run the tests when you deploy and only worry about remote debugging when something really unexpected occurs.
Also, there was an article in JDJ about that at:
http://sys-con.com/story/?storyid=44918
Read the sample chapter on Debugging for information on how to set up a remote debugging session for standalone clients as well:
http://www.samspublishing.com/articles/article.asp?p=336248
This section specifically has the information on remote debugging:
http://www.samspublishing.com/articles/article.asp?p=336248&seqNum=4
Carlos
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Jitesh Sinha:
4.)Can Eclipse help me in doing the debugging of my app without having to create any extra directories anywhere?
Yes it can.
However, since you are talking about a web app you should be able to connect remotely using a plug-in like MyEclipse to control a number of different app servers (running locally) while you are developing. You should probably be developing Cactus and jWebUnit tests as well while you are developing so you can run the tests when you deploy and only worry about remote debugging when something really unexpected occurs.
Also, there was an article in JDJ about that at:
http://sys-con.com/story/?storyid=44918
Read the sample chapter on Debugging for information on how to set up a remote debugging session for standalone clients as well:
http://www.samspublishing.com/articles/article.asp?p=336248
This section specifically has the information on remote debugging:
http://www.samspublishing.com/articles/article.asp?p=336248&seqNum=4
Carlos
Carlos Valcarcel, Director<br /><a href="http://www.triveratech.com" target="_blank" rel="nofollow">Trivera Technologies LLC</a>, [email protected]<br />Author of Eclipse Kick Start
| If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |









