• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Remote debugging using Eclipse

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic