Safari Developer FAQ
14. How do I debug JavaScript in Safari? Safari's "Debug" menu allows you to turn on the logging of JavaScript errors. To display the debug menu in Mac OS X, open a Terminal window and type:
defaults write com.apple.Safari IncludeDebugMenu 1

No comment on this link yet.