Debugging Appserver Hosted applications [message #148113] |
Thu, 23 October 2003 05:27  |
Eclipse User |
|
|
|
Originally posted by: anranga.yahoo.com
Hi,
How do you debug applications hosted on an app server/webserver using
eclipse. I currently have an application hosted on Tomacat and want to
debug the same. Can somebody tell me how or point to to the appropriate
documentation.
regards
ANR
|
|
|
Re: Debugging Appserver Hosted applications [message #148115 is a reply to message #148113] |
Thu, 23 October 2003 05:42  |
Eclipse User |
|
|
|
Originally posted by: kresho.ieee.org
You must start the server with debugging options turned on for the JVM. I use these:
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=5000,suspend= $SUSPEND
replace $SUSPEND with either 'y' on 'n', depending on whether you want the application to wait with startup until you connect with the debugger or not. Put these options in the command line before any mention of the main class/jar file, because these are VM options, not app options.
Then, create a debug launch config using "Remote java app" type, and enter your server name and port (5000 in above example).
Launch the debugger and enjoy :-)
--
Krešimir Tonkovic
Alterbox.hr doo
kresimir.tonkovic@alterbox.hr
www.alterbox.net
"ANR" <anranga@yahoo.com> wrote in message news:bn86ul$tgp$1@eclipse.org...
> Hi,
>
> How do you debug applications hosted on an app server/webserver using
> eclipse. I currently have an application hosted on Tomacat and want to
> debug the same. Can somebody tell me how or point to to the appropriate
> documentation.
>
> regards
> ANR
>
|
|
|
Powered by
FUDForum. Page generated in 0.28719 seconds