How to debug bundles in CQ5 | Community
Skip to main content
Level 2
October 16, 2015
Solved

How to debug bundles in CQ5

  • October 16, 2015
  • 2 replies
  • 1123 views

Hi,

 I have a bundle that I have deployed in CQ5 author environment but there is something wrong with the code which I am not able to figure out. Please let me know how to debug the bundle code in eclipse. I have whole code eclipse and I have put the breakpoints in the code too. Please tell me is it possible to debug the bundle deployed in CQ5 while opening the web page that contains the necessary functionality.

Any guidance in this will be highly appreciated.

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 the KB: 

http://helpx.adobe.com/experience-manager/kb/CQ5HowToSetupRemoteDebuggingWithEclipse.html

You can also do log file print outs in your code as well. 

log.info("Retrieved USER "+id) ;

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

See the KB: 

http://helpx.adobe.com/experience-manager/kb/CQ5HowToSetupRemoteDebuggingWithEclipse.html

You can also do log file print outs in your code as well. 

log.info("Retrieved USER "+id) ;

Level 3
October 16, 2015

java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=256M -Xmx1024m -Dorg.apache.sling.commons.log.level=INFO -jar cq-author-4502.jar -p 4502 -verbose -nofork