cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to debug the javascript snippets in subscription

amitworx
1-Visitor

How to debug the javascript snippets in subscription

Hello experts,

Can anyone please let me know if it is possible to debug the javascript snippets one writes to handle subscriptions?

If it is possible, a short explanation would be appreciated.

Please let me know.

Thanks and Regards,

Amit Teli

ACCEPTED SOLUTION

Accepted Solutions

You need to write in on your Subscription code itself, just logging messages you decide, you can't plug to the subscription execution to debug it live.

What you can do it's something like:

Subscription code:

logger.info("A message to the logger");

... your code...

logger.info("Another message to the logger");

...  more code...


Best Regards,

Carles.

View solution in original post

5 REPLIES 5

You need to use logger.info / debug / error / warn functions.

Thanks for the quick response.

I think it is available only in java. Is it also possible in javascript?

Could you kindly post sample code for the same if possible?

Thanks again!

Amit

You need to write in on your Subscription code itself, just logging messages you decide, you can't plug to the subscription execution to debug it live.

What you can do it's something like:

Subscription code:

logger.info("A message to the logger");

... your code...

logger.info("Another message to the logger");

...  more code...


Best Regards,

Carles.

Thanks a ton Carles

After I added that I could see the messages printed through Monitoring->Script menu.

Best Regards,

Amit

Yup, you can change the level for logging verbose on the "Settings" tab.

Announcements


Top Tags