view Javascript errors — Tools > Error Console
more thorough debugging — Firebug
view Javascript errors — double-click on the exclamation-alert icon in the far lower-left corner
more thorough debugging
view Javascript errors — enable the develop menu, Page > Develop > Show Error Console
more thorough debugging — Web Inspector
view Javascript errors — Page > Developer > JavaScript Console
more thorough debugging — Page icon > Developer > Debug JavaScript (it's text-only)
view Javascript errors — Tools > Advanced > Error Console
more thorough debugging — Dragonfly