It depends on the browser, but there are some very good ways to handle errors. If you are using firefox, you can install FireBug and then use:
console.log('like an alert but in the firebug window');
This is much faster than clicking ok, then ok, then ok ...
http://getfirebug.com/
Firebug JS , . , !