Below are the steps to setup debug point in intellij
Open startup.bat file located in crx-quickstart\bin and locate "::* default JVM options" in the file
Find : if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true
Replace : if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx2048m -XX:MaxPermSize=1024M -Djava.awt.headless=true -debug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303
Explanation: In the above script we are increasing the JVM_OPTS size from 1024m to 2048m, increasing MaxPermSize from 256M to 1024M, and running the debug port on the 30303 port.
Now in intellij we need to configure the debug port for core bundle
Open Run from the intellij options
Configure Name, Port, and Use Module classpath fields and select "Apply" and then "Ok"
Now you can set the debug point in intellij and start debugging the code
!!! Happy Learning !!!
Comments
Post a Comment