When you’re righting some Javascript / jQuery and run your code, you normally would see your errors in your browser inspector’s console tab so you can easily fix them. But, sometimes the error you see appears in 3rd party code that you haven’t even touched, e.g. jQuery. One way to find where the “real” error has occurred is by looking at the call stack. In Chrome Inspector, do the following:
- Click the Sources tab
- Click the Stop sign until it is purple (Pause at all uncaught exceptions)
- Reload the page
- Examine the call stack