Expand my Community achievements bar.

SOLVED

How to debug bundles in CQ5

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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) ;

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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) ;

Avatar

Level 3

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