Skip navigation
Anzy_cq55
Currently Being Moderated

Not able to debug in CQ5.5

Mar 26, 2012 11:36 PM

I am running the cq jar in debug mode (-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=30303 -Xnoagent -Djava.compiler=NONE)

I am using Eclipse/IntiellJ ide. The connection is established but the debugger doesn't work.

Response will be appreciated.

 
Replies
  • Currently Being Moderated
    Mar 27, 2012 12:04 AM   in reply 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

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 12:33 AM   in reply 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.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 4:49 AM   in reply 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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 16, 2012 8:53 PM   in reply to hypnotec

    Greet! It work! thank you hypnotec!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points