Debugging Safari

To enable the very useful debug menu in Safari use the following:

defaults write com.apple.Safari IncludeInternalDebugMenu 1

It is often useful to switch into Single Process mode by turning off "Use Multi-Process Windows"