debugging [message #302620] |
Tue, 25 April 2006 11:57  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03565 seconds