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

Debugging Server side javascript breaks the site

  • January 7, 2016
  • 5 replies
  • 1801 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

edubey
Level 10
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?

edubey
Level 10
January 7, 2016

Hi,

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

sid_da
sid_daAuthor
January 7, 2016

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

edubey
Level 10
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.

Sham_HC
Sham_HCAccepted solution
Level 10
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.