Internet Explorer
Make sure under the Tools menu, Internet Options, Advanced tab:
- Disable script debugging is unchecked.
- Display a notification about every script error is checked.
With those settings when there is a javascript error a window like this should appear:
If you check the box Use the built-in script debugger in Internet Explorer a window with error highlighted should come, something like this: