How to remote dubug AEM OSGI bundle using eclipse?
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:
- Open Eclipse.
- Choose Run > Debug Configurations.
- Right-click Remote Java Applications and select New.
- Select your CQ5 project under Project.
- 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)
- 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