HOW TO debug Javascript in Safari 3.1 on Windows

If you are targeting your web application for Safari users and also want to make sure your JavaScript code is cross-browser, how can you check for any JavaScript errors on that browser?

It can be done by activating the Develop menu (which is disabled by default) and picking the Show Error Console option (similar to Tools menu > Error Console option in Firefox).