Expand my Community achievements bar.

SOLVED

AEM eclipse plugin debug option

Avatar

Level 9

I am trying to debug aem application as mentioned in the documentation with the following option

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -nofork  -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10123

When I start using start.bat I get

Unrecognized option: -nofork
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

However when I change quickstart.bat, uncomment the following section and add debugging options. server starts with quickstart.bat

::* do not fork the JVM
set CQ_NOFORK=true

It listens on port 10123 but when I try to debug by setting the breakpoints, it is not debugging

My java version is 1.7.0_51, I don't even see the option for -nofork when I type java -help

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

A

1 Accepted Solution

Avatar

Correct answer by
Level 10

have you configured the same in eclipse ? Also how have you started your server ?

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

have you configured the same in eclipse ? Also how have you started your server ?