I have done some changes in my custom script and while creating a new record, I am getting this error on form load.
What is the way to trace this error, I mean how I would know that which line number or statement is creating error?
Seems like a syntax error - ’ Unexpected token )’. for debugging you can use exception handling as well as adding console.log wherever necessary.
Check following links for better debugging
Tips and Tricks for Debugging in the Frappe Framework
Debugging with Chrome’s Developer Console