I am doing a web application. In Firefox, I am able to use Web Developer's Debugger tool.
In my Javascript code, I got the error in Firefox
TypeError: a is undefined
The above error happened in jQuery.
I know that the data I pass to jQuery is not right. However, there are many jQuery calls in my code and I don't know which call leads to this error.
Anyway to show the stack of calls that lead to an error via Debugger? The way Java shows error stack trace?
Thanks!
Here is what I did.
Use development version of jQuery (not the file with min in it).
Find the error line in jQuery. Before it, insert the following:
console.trace() shows the trace.
I am not sure whether there is any easier way.
Hope this helps someone else.
Cheers.