I started CQ5.5 in debug mode using the command: java -Xmx512m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=30303,suspend=n -jar cq-author-4502.jar. Then I opened CRXDE to start debugging. But it shows "Attach Debugger" as disabled still. Usually, I used to see this is enabled after starting the earlier versios of CQ-5.4, 5.3 in debug mode. Can any one help with this?
Also, are there any steps available to start debugger with Eclipse, RAD, netbeans etc.,?
If you take a look of the console output of that java command, does it say "Will fork a JVM to get enough memory"? If so, the forked Java process will not get your debug parameters.
Debugging in Eclipse, RAD, NetBeans, etc. is just a matter of starting a remote debugger pointing to port 30303.
Something's fishy here. You're passing -Xmx1024m, but the JVM is reporting a heap size of 910 MB and, as a result, forking. I don't know why that would be. You could either give the JVM more memory or pass -nofork to suppress the forking behavior.
Also, I see you are running on Java 7. That is not supported. See http://dev.day.com/docs/en/cq/current/deploying/technical_requirements .html
Maybe this is why it isn't supported
Justin, the documentation says that "JRE or JDK 1.5 (or higher)". So I thought JDK 1.7 would work. I have tried with -nofork option, but it is still reporting the same error. I will also give a try with JDK1.5 and see if that works.
Thank you very much for your help
Europe, Middle East and Africa