How to remote dubug AEM OSGI bundle using eclipse? | Community
Skip to main content
October 16, 2015
Solved

How to remote dubug AEM OSGI bundle using eclipse?

  • October 16, 2015
  • 11 replies
  • 3476 views

Hi there,

Firstly starting CQ5 with:

java -Xmx512m -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -jar cq-author-4502.jar

Then to start a remote debugging session from Eclipse, do the following:

  1. Open Eclipse.
  2. Choose Run > Debug Configurations.
  3. Right-click Remote Java Applications and select New.
  4. Select your CQ5 project under Project.
  5. Type in the port from the "address" configuration of the jvm parameter defined above. In the example, it is port 8000 (and the host name of the machine you are connecting to, most likely localhost)
  6. To start a debugging session, double-click your new configuration in the Debug Configurations screen after saving it.

However, i find the Breakpoint marked in eclipse never pause but the background print task running log that indicates program work finished.

Anyone know how to deal with it? Thanks a lot in advance.

(Reference source:http://helpx.adobe.com/experience-manager/kb/CQ5HowToSetupRemoteDebuggingWithEclipse.html)

Best regards,

Brian

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

See this community artilce that talks about how to setup an AEM project using Eclipse for debugging:

https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html

11 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

See this community artilce that talks about how to setup an AEM project using Eclipse for debugging:

https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html