Debug UI script

G Balaji
Kilo Guru

Hey folks,

We've a service portal widget cloned from OOB SC Category Page which has dependency to an UI script. This widget works as expectedly only in test environment. And when tested in dev and prod, it throws up an error in UI script. So, we need to debug this UI script to see what exactly causes this error.

Is there any ways to debug UI scripts like adding log statements. 

Thanks.

 

2 REPLIES 2

David Arbour
Tera Guru

Yes, you can use console.log(), and you'll need to open your browser dev tools to view what is actually logged.

G Balaji
Kilo Guru

Thanks David. I shall try it now.