Debug with IntelliJ: Ide does not stop at breakpoint(s) | Community
Skip to main content
Magicr
Level 6
Oct 11, 2019 9:43 AM UTC
Solved

Debug with IntelliJ: Ide does not stop at breakpoint(s)

Hello,

I'm quite desperated about the issue that my InelliJ does not stop at defined breakpoints during debug mode. Neither it works at my AEM 6.4 instance nor AEM 5.6. The console output of ide says that exists a connection to aem instance. I'm using commercial edition of IntelliJ in version 2019.2.3 . Additional I've got a new fresh installation of Windows 10 on my computer. What can I do?

I have researched a lot of time for solving this issue, without no success. Some external consultants cannot reproduce this.

Thanks in advanced.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Magicr
MagicrAccepted solution
Level 6
Oct 21, 2019 10:02 AM UTC

Accendently I could solve this issue. I did follow way:

  1. Open the start script in folder "crx-quickstart / bin" ('start' or 'start.bat) in an editor
  2. Replace the line "CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx256m -XX:MaxPermSize=512M -Djava.awt.headless=true" by "CQ_JVM_OPTS=-Xmx256m -XX:MaxPermSize=512M -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=<Port>,server=y,suspend=n"

For now I have to use the startscript to start the enviroment. What ever circumstances are in charged for this action.

3 replies

Magicr
MagicrAuthorAccepted solution
Level 6
Oct 21, 2019 10:02 AM UTC

Accendently I could solve this issue. I did follow way:

  1. Open the start script in folder "crx-quickstart / bin" ('start' or 'start.bat) in an editor
  2. Replace the line "CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx256m -XX:MaxPermSize=512M -Djava.awt.headless=true" by "CQ_JVM_OPTS=-Xmx256m -XX:MaxPermSize=512M -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=<Port>,server=y,suspend=n"

For now I have to use the startscript to start the enviroment. What ever circumstances are in charged for this action.

Translate
Magicr
MagicrAuthor
Level 6
Oct 21, 2019 9:50 AM UTC

I have already tried this this way and it did not work.

Translate
Level 3
Oct 14, 2019 6:42 PM UTC

Did you use this:

You can run the AEM application from IntelliJ. To run the application, you have start AEM in debug mode by using the following command from the folder where the AEM quick start is located:

java -Xmx512m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=30303,suspend=n -jar cq5-author-p4502.jar

Translate