There’s a hidden ‘cheat’ menu in Safari for debugging, and since Webkit has a ways to go in bringing JavaScript support up to par, this can be a very useful menu.
Probably of most use is ‘console.log’ – a Safari function that allows a Javascript developer to write to a log while debugging, instead of the all too common alert().
To enable the cheat menu, open a Terminal window and type: