Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » debugging
debugging [message #302620] Tue, 25 April 2006 11:57 Go to next message
Eclipse UserFriend
Originally posted by: chadmichael.excite.com

Hello.

I'm developing an application that uses a servlet container that doesn't
have a plugin for eclipse. I was wondering what it would take to get
eclipse based debugging support for my development. Can anyone explain to
me how eclipse handles the debugging that occurs when you, for instance,
are developoing a Tomcat application under eclipse?
Re: debugging [message #302634 is a reply to message #302620] Tue, 25 April 2006 19:11 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

chadmichael wrote:
> Hello.
>
> I'm developing an application that uses a servlet container that doesn't
> have a plugin for eclipse. I was wondering what it would take to get
> eclipse based debugging support for my development. Can anyone explain
> to me how eclipse handles the debugging that occurs when you, for
> instance, are developoing a Tomcat application under eclipse?
>
>

There are two paths to take:
A) Set up a Launch Configuration that launches your container as a Java
application with all the proper arguments. To do this you will need to
understand the container's startup script and convert that to an Eclipse
Launch Configuration. I've done it for JBoss, WebLogic, and Jetty in the
past - not too difficult if your understand how to start up the
container from command line. You will also need to have the container
JARs available to Eclipse as a project.

This amounts to running your container as an application launched
directly from Eclipse.

B) The other approach is to launch your container, not from within
Eclipse, but include the standard JPDA (Java Platform Debugging
Architecture) VM arguments so that a debugger can attach to it. Then You
can set up a Launch Configuration in Eclipse of type "Remote Java
Application" that will attach the Eclipse debugger to the running
container. This is all documented in the Eclipse help system.

I've usually opted for Option A, but depending on which container you're
using and how well you understand Launch Configurations, it might more
difficult for you personally.

Hope this helps,
Eric
Previous Topic:[HowTo] find screen location / position of *item* for popup-menu action?
Next Topic:Changing accelerator label for cut/copy/paste
Goto Forum:
  


Current Time: Tue Jul 01 16:11:31 EDT 2025

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

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

Back to the top