Debug Java applications remotely with Eclipse

This feature really helps me to find some bugs in my code in an easy way. I have tried this for WSO2 appfactory server and its no meter it will work for any of WSO2 products and other servers too.

First you need to start the server in debug mode. For WSO2 carbon server go to bin directory and type following command in the terminal.

./ –debug 5005 . You can use different port number for this.

Next place some debug points in your code and set up the debug configurations. right click on your project and go to Debug as and click on Debug Configurations. Next click on Remote Java Application which is in the left side of the debug configuration window as shown in the figure bellow. Then Apply the changes and click debug.

That’s all. Now you can debug your code as you wish.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s