• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Debugging a web application in Eclipse

 
Ranch Hand
Posts: 982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Suppose i have a small web application in my tomcat...And I want to debug the application in Eclipse...How can i do it...



Regards
 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have to set a breakpoint in your code. This can be done by doubleclicking on the left margin of your Java src file editor. Once you run the application the debugger is invoked and you have to switch to the Debug Perspective in eclipse which it does by asking you to switch to debug perspective once it encounters a breakpoint.

Use eclipse help tool to for more information on the Debug perspective.

Also, I think you have to setup your project as a tomcat project.
 
A Kumar
Ranch Hand
Posts: 982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know how to debug if its a standalone application...but if it is a web application..how to track the flow of the application..
 
Saloon Keeper
Posts: 28319
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you install the sysdeo plugin (http://www.sysdeo.com/eclipse/tomcatplugin) it will provide support for starting and stopping Tomcat inside of Eclipse and allow you to set breakpoints in webapp code.

A less pleasant way to get the same effect is to start a copy of Tomcat with Java Remote Debugging turned on and connect as a remote debugging session.

I recommend sysdeo. It's a little frustrating to get started initially - especially if you already have your webapp defined in Eclipse and have to go back and manually the make connections that would be done by the plugin when you create a new webapp with sysdeo already installed, but the end result is worth it.
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic