Debugging Server side javascript breaks the site | Community
Skip to main content
sid_da
New Participant
January 7, 2016
Solved

Debugging Server side javascript breaks the site

  • January 7, 2016
  • 5 replies
  • 1779 views

When I enable server side debugging by setting org.apache.sling.scripting.javascript.debug=true. I get the following error message when I try to access my page. See image for error.

Can anyone please advise on how to properly debug server side javascript. Many Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

There are no tools for efficient JavaScript debugging in Sling / AEM . What you mentioned to be used is the Sling JavaScript debugger that still an alpha tool available for ECMA / ESP scripts used for rendering components.  Also we did not documented in our pages if you have seen that in our official documentation pages please provide the link will get the document fixed. 

5 replies

Sham_HC
Sham_HCAccepted solution
New Participant
January 7, 2016

There are no tools for efficient JavaScript debugging in Sling / AEM . What you mentioned to be used is the Sling JavaScript debugger that still an alpha tool available for ECMA / ESP scripts used for rendering components.  Also we did not documented in our pages if you have seen that in our official documentation pages please provide the link will get the document fixed. 

edubey
New Participant
January 7, 2016

Thanks

I am able to replicate this, I am looking into it.

It could be a bug as well, Meanwhile please raise a day care ticket with adobe.

sid_da
sid_daAuthor
New Participant
January 7, 2016

In the sling.properties file located under crx-quickstart/conf directory.

edubey
New Participant
January 7, 2016

Hi,

 can you please refer where are you exactly setting org.apache.sling.scripting.javascript.debug = true

edubey
New Participant
January 7, 2016

I guess you can easily use logger in sightly JS file like log.info("Hello info log");

is this what you are referring?