Client Script Debugging

geet
Tera Guru

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

1 ACCEPTED SOLUTION

gauravchoudhury
Tera Guru

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.

 

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

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


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

gauravchoudhury
Tera Guru

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.