Debug UI script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 06:50 AM
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.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 06:57 AM
Yes, you can use console.log(), and you'll need to open your browser dev tools to view what is actually logged.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2020 07:18 AM
Thanks David. I shall try it now.