Safari Debug Mode
Do you use Firebug in Firefox when doing web development?
Guess what, Safari has a built in debugger that works in a very similar fashion.
In the terminal, with Safari closed, type:
% defaults write com.apple.Safari IncludeDebugMenu 1
(Thanks to MacOSX Hints, Enable the Safari debug menu for the how-to.)