-
1. Re: Not able to debug in CQ5.5
hypnotecMar 27, 2012 12:04 AM (in response to Anzy_cq55)
where are you setting a break point? in a JSP? for that please add a JSR-45 remote debug configuration in your IDE (e.g. IntelliJ). use the following debug options:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303
-
2. Re: Not able to debug in CQ5.5
Anzy_cq55 Mar 27, 2012 12:15 AM (in response to hypnotec)Hi,
I am putting the break points on java class files from the bundle. Same thing used to work with CQ5.3.
Thanks,
-
3. Re: Not able to debug in CQ5.5
hypnotecMar 27, 2012 12:33 AM (in response to Anzy_cq55)
how are you starting CQ? it is possible that quickstart forks the JVM, so that you're not debugging the right java process. i'd recommend to start with -nofork option for debugging.
-
-
5. Re: Not able to debug in CQ5.5
hypnotecMar 27, 2012 4:49 AM (in response to Anzy_cq55)
as i said, your JVM is being forced due to low memory settings. start like this:
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
-
6. Re: Not able to debug in CQ5.5
Anzy_cq55 Mar 27, 2012 5:01 AM (in response to hypnotec)Tons of thanks. It works in that way.
-
7. Re: Not able to debug in CQ5.5
Rock Liang Jun 16, 2012 8:53 PM (in response to hypnotec)Greet! It work! thank you hypnotec!