Posts

Showing posts with the label servicenow debug script

Debugging Client Script in ServiceNow - All you need to know

Image
  Hello all Readers,   I have seen many developers struggling and killing lots of their productive time in finding error/bugs in the code. Often they have no clue why the hell their code is not working the way it should. Now there could be 'N' number of reasons why your code migh not work, but how to know  ?    The most approached way I have seen that developers follow is using  alert()  method or  console.log()  method. This approach is no doubt helpful but, what if you are not sure at which line of code you are having data processing issue? You may end up with multiple alert messages and unknowingly you may end up irritating other people who are working on the form, as those alerts will popup on their screen as well    So, is there a way I can debug my client side code silently without using alert(s) and without bothering anyone else ?? Ofcourse,  YES !!!!   Before we go on to the soultion. Lets go to the basics of execu...