I have many Javascript or jQuery methods in my ASP.net project. 85%+ is client side scripting. I have Jquery validate and Labelify plugins. Hence, whenever I make changes in Jquery methods or Javascript if something fails it is failing in the scriptresource.axd file and not allowing me to submit form. So I would like to have some error log or tracing so that I can log which function is passed and where it is failing.
So,
- Is there any built in Jquery or Javascript method that does this log or Tracing.
- If there is no built in please suggest me how to do that in easier way. Right now I thought like this to have
Log(event,startOrEnd,isPassed);and call this method for each and every event triggering. But I have around 30+ methods so I don’t think its a good idea to do this way.
Please suggest a good way.
You need to use firebug or use Chrome’s console:
Then you can use all the
consolemethods.List of all the methods
Shortcut function for
console.logFiddle: http://jsfiddle.net/maniator/RuURG/