cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging a custom javascript controller

olylak
Champ on-the-rise
Champ on-the-rise

Hi everybody,

Can anyone help me to get started with javascript debugging?

Lets assume I have completed all the steps from the following documentation: Customizing a Surf JavaScript Widget in the Document Library | Alfresco Documentation 

I'm able to debug client javascript code that is exposed to the browser.

But the question is how to debug a javascript controller documentlist-v2.get.js mention in this article?

Thanks for any help.

 

1 ACCEPTED ANSWER

douglascrp
World-Class Innovator
World-Class Innovator

You can use the Javascript debugger, as described in the docs: Debugging a controller script | Alfresco Documentation 

View answer in original post

3 REPLIES 3

douglascrp
World-Class Innovator
World-Class Innovator

You can use the Javascript debugger, as described in the docs: Debugging a controller script | Alfresco Documentation 

olylak
Champ on-the-rise
Champ on-the-rise

Thanks Douglas,

I saw this doc. Could you please advice how to "Invoke your web script". What is the controller URL for this particular example?

It's not clear for me how to invoke it.

Thanks.

douglascrp
World-Class Innovator
World-Class Innovator

By "invoke your webscript" you can understand it as access its URL, using the right HTTP method (GET, PUT, etc).