Archive

Archive for August, 2010

Debugging Tomcat using Eclipse ‘Remote Java Application’

August 1st, 2010 ruggershawn No comments

It’s often useful debugging tomcat using eclipse remote java application.

Here are instructions for doing so:

1)      Open %tomcat_home%\bin\tomcat6w.exe which will open a configuration UI.

2)      Select the Java tab and enter two Java Options at the bottom:

a.       –Xdebug
b.      -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8005
i.      8005 is the port – you can pick any available port

3)      Restart your tomcat service.

4)      From Eclipse, set up a Debug Configuration under Remote Java Application (as usual for debugging)

Categories: Eclipse Tags: