- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2017 11:52 PM
Hi All,
I want to debug my client script line by line as i used to do in .NET framework.
Kindly help with a best way...
I tried jslog() but it doesn't work, and every time i have to check browser console to check the warnings and errors.
Regards,
Shikha Khanna
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2017
12:36 AM
- last edited on
‎07-12-2024
03:09 PM
by
ServiceNow
Hi Shikha,
There are several strategies for debugging client-side scripts:
- JavaScript Log and jslog()
- Field Watcher
- try/catch
- Debugging tools built into web browsers (browser dependent)
You can also use Chrome to debug Client-side errors -- Refer link
To have a detailed overview on the various way to debug, refer to this link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2017 11:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2017 12:28 AM
Hi Shikha,
You can use alert statements or console.log to check in browser console
alert statements can sometimes be irritating so you can use console.log
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2017
12:36 AM
- last edited on
‎07-12-2024
03:09 PM
by
ServiceNow
Hi Shikha,
There are several strategies for debugging client-side scripts:
- JavaScript Log and jslog()
- Field Watcher
- try/catch
- Debugging tools built into web browsers (browser dependent)
You can also use Chrome to debug Client-side errors -- Refer link
To have a detailed overview on the various way to debug, refer to this link.