Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Really debugging webapps in Eclipse
Really debugging webapps in Eclipse [message #149090] Fri, 25 November 2005 10:15 Go to next message
Eclipse UserFriend
Originally posted by: please.ask.me

Hi,

I have some projects that I want to be able to debug with an Eclipse /
Tomcat combination. My current way of doing is to put the files into the
Tomcat webapps directory with Ant and buildfiles, with Tomcat running
standalone. But I would like to push the debug button in Eclipse to do the
same with some debugging information returning back to Eclipse.
My question is: How do I set up Eclipse and my projects structure (in the
Project Explorer view and the contents of the .xml files) to get this
working?

Thanks in advance for some helpful posts.

Ex

Eclipse 3.1 (JRE 5.0)
Tomcat 5.5 (VM: JRE 1.4.2)
Web Standard Tools 0.7.1
Re: Really debugging webapps in Eclipse [message #149110 is a reply to message #149090] Fri, 25 November 2005 10:38 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Exquisitus wrote:
> I have some projects that I want to be able to debug with an Eclipse /
> Tomcat combination. My current way of doing is to put the files into the
> Tomcat webapps directory with Ant and buildfiles, with Tomcat running
> standalone. But I would like to push the debug button in Eclipse to do the
> same with some debugging information returning back to Eclipse.
> My question is: How do I set up Eclipse and my projects structure (in the
> Project Explorer view and the contents of the .xml files) to get this
> working?


Check out Window -> Show View -> Other => Servers (find it)

In that view tab that appears right click New -> Server in the white space.

If you check out the help docs for setting up, you should be able to
launch your web-app in tomcat and have eclipse launch tomcat. When
eclipse launches tomcat the integrated debugger connects to the tomcat
JVM to allow you to debug your webapp.

Most of the work in setting up a temporary tomcat runtime environment
that is fully managed by eclipse is already done for you.

In the case of the Server tab it maybe better to think of the term
"Server" to really mean "Container".


Your project needs to be of the correct project type to allow it to
launch correctly, this is usualy achieve by starting with the New
Project Wizard and start out with Dynamic Web Project.


I think there maybe other ways to do what you want like Debug As ->
Debug On Server, but I'm not sure what they do in real terms.


Darryl
Re: Really debugging webapps in Eclipse [message #149172 is a reply to message #149110] Fri, 25 November 2005 12:55 Go to previous message
Eclipse UserFriend
Originally posted by: please.ask.me

Thanks Darryl for a quick reply.

> Check out Window -> Show View -> Other => Servers (find it)
>
> In that view tab that appears right click New -> Server in the white
> space.

I did this.

> If you check out the help docs for setting up, you should be able to
> launch your web-app in tomcat and have eclipse launch tomcat. When
> eclipse launches tomcat the integrated debugger connects to the tomcat
> JVM to allow you to debug your webapp.

Starting up Tomcat with the tutorial on
http://www.eclipse.org/webtools/community/tutorials/BuildJ2E EWebApp/Build
J2EEWebApp.html

works as well.
I didn't try the debugging yet, but I will in a moment.

> Most of the work in setting up a temporary tomcat runtime environment
> that is fully managed by eclipse is already done for you.
>
> In the case of the Server tab it maybe better to think of the term
> "Server" to really mean "Container".
>
>
> Your project needs to be of the correct project type to allow it to
> launch correctly, this is usualy achieve by starting with the New
> Project Wizard and start out with Dynamic Web Project.

Yes, and this is we're I have my lack of knowledge now. In the Dynamic
Web Project Properties I see a lot of different builders, a source output
path and I can see my Java Jar Dependencies (something that i couldn't
see from the other projects). In the Project Manager View the structure
of the project looks different from the other ('legacy') projects as
well.

> I think there maybe other ways to do what you want like Debug As ->
> Debug On Server, but I'm not sure what they do in real terms.

There's also the Debug as Remote Application option, which i didn't
explore yet.

Ex
Previous Topic:Publishing web content
Next Topic:Dependent Projects
Goto Forum:
  


Current Time: Fri Sep 20 23:56:58 GMT 2024

Powered by FUDForum. Page generated in 0.03832 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top