Safari Debug Menu

Safari comes with a debug menu, so us Javascript programmers can actually debug our code, only problem is, it’s not enabled by default. Took me a while to work out how to do it on Windows Vista at work, as the folder location has changed compared to XP.

Anyway, here’s how to do it on the Mac, Windows XP, and Windows Vista.

Mac

Open up the terminal and type:

defaults write com.apple.Safari IncludeDebugMenu 1

Windows XP / Vista

With windows, you will manually need to edit the file called “Preferences.plist”. On XP, you should find that in…

C:\Documents and Settings\USERNAME\Application Data\Apple Computer\Safari

For Vista, it is located in…

C:\Users\USERNAME\AppData\Roaming\Apple Computer\Safari

Open the file up in a text editor, and add a new key entry…

<key>IncludeDebugMenu</key>
<true/>

Make sure you nest it correctly inside the dict tag.

Save it and restart Safari. You should now see the debug menu at the end.

Credits: I take no credit for the above solutions, you can find the answer on many blogs by searching Google, though the Vista information was a little harder to find, so altogether they are :p

Tags:

Thursday, June 21st, 2007 Browsers

1 Comment to Safari Debug Menu

  1. That’s fairly helpful. Thanks Peter. :)

  2. Chris on June 22nd, 2007

Leave a comment

What Am I Doing?

Search

 

Categories