Remote debug Alfresco with Eclipse

It is easy to debug your Alfresco application running with Tomcat. Simply add the following JAVA_OPTS (that will enable remote debugging):
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

The address is of your choice. If you set suspend=y Tomcat will wait on your command to continue when started.

The JAVA_OPTS are usually defined in your Alfresco startup script or when starting Tomcat.

Now, create a new Remote Debug configuration in Eclipse. This is done by selecting Run->Open Debug Dialog. Choose to create a new “Remote Java Application”, give it a name. Connection Type should be set to “Standard (Socket Attach)”. Set Host and Port fields corresponding to your setup (usually localhost and 8000). I think you could use any project but to get source available choose any Alfresco core project.

0 Responses to “Remote debug Alfresco with Eclipse”



  1. Leave a Comment

Leave a comment