Tag Archive for 'debug'

Enable the Safari Debug menu

Why would you want to? Well, one of the most useful facilities in the Debug menu is one that lets you change the User Agent. This enables you to tell the website you are using different browsers including Internet Explorer, Firefox, Netscape and Mobile Safari. This is useful for website development testing. In addition, as a result of lazy and inadequate development, some sites are blocking visitors who are not using Internet Explorer. By changing your User Agent you can bypass these stupid restrictions. Anyway, here’s what to do:

  1. Quit Safari
  2. Launch Terminal
  3. Type defaults write com.apple.Safari IncludeDebugMenu 1
  4. Re-start Safari and the debug menu will be enabled

To disable the debug menu, repeat the process but replace the 1 at the end of the terminal command with a zero.