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!
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
I guess you can easily use logger in sightly JS file like log.info("Hello info log");
is this what you are referring?
Views
Replies
Total Likes
Hi,
can you please refer where are you exactly setting org.apache.sling.scripting.javascript.debug = true
Views
Replies
Total Likes
In the sling.properties file located under crx-quickstart/conf directory.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies