Thursday, November 26, 2009

Enable JavaScript Debugger

To Debug  Alfresco Scripts

Go to

http://localhost:8080/alfresco/service/api/javascript/debugger

Click  on Enable button

or edit  log4j.properties  in tomcat\webapps\alfresco\WEB-INF\classes

log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=on

To Debug Share Scripts

http://localhost:8080/share/service/api/javascript/debugger

click on Enable button

you will get a new debugger window

3 comments:

  1. Hi thanks for your article.
    I did the same steps but when I click on Enable button I get this :
    The Web Script /share/page/api/javascript/debugger has responded with a status of 500 - Internal Error.

    500 Description: An error inside the HTTP server which prevented it from fulfilling the request.

    Message: 01270001 Wrapped Exception (with status template): null

    Exception: org.springframework.extensions.webscripts.WebScriptException - 01270001 Wrapped Exception (with status template): null

    org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:970)
    is there another solution?

    ReplyDelete
  2. Hi,
    You need to start alfresco not as Windows Service.
    https://forums.alfresco.com/en/viewtopic.php?f=36&t=26149

    ReplyDelete