Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Enable the Debug menu in Safari 4 Web Browsers
So robg and I were discussing another hint submission of mine, one that robg couldn't understand because it referred to a menu he didn't have. After some back and forth, it turned out that the core of the suggestion for this new hint was actually on the site for a year, but buried at the bottom of a lengthy comment string.

The original hint covered how to enable the Debug menu in Safari, and dates back to 2003. With the advent of Safari 4, this command no longer worked. But somehow, I had a Debug menu and robg did not. The key is in a comment made by chleuasme, posted at the tail end of the comment thread on the original Enable the Safari debug menu hint. In the latest versions of Safari, the Debug menu is activated with a slightly different Terminal command:
defaults write com.apple.Safari IncludeInternalDebugMenu 1
As chleuasme also noted in their comment, this is publicly posted on the WebKit site.

[robg adds: I hadn't ever noticed the comment about how to enable the Debug menu in newer versions of Safari, and it's definitely worth sharing as a full hint. So thanks to chleuasme for finding it originally, and to Frederico for figuring out why I couldn't get the Debug menu to show up.]
    •    
  • Currently 2.27 / 5
  You rated: 2 / 5 (11 votes cast)
 
[25,168 views]  

Enable the Debug menu in Safari 4 | 16 comments | Create New Account
Click here to return to the 'Enable the Debug menu in Safari 4' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Enable the Debug menu in Safari 4
Authored by: dksp on Jul 02, '09 07:50:28AM

Since the official Safari 4 I have an entry in Safari's preferences to enable the debug menu. It's in the "Advanced" tab.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: agraboso on Jul 02, '09 08:00:23AM

No: what you have in the "Advanced" tab is an option to show the *Develop* menu, not the Debug one.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: mesa on Jul 02, '09 08:42:05AM

In Safari 4 there is a debug menu and a develop menu, the develop menu is enabled using the advanced preferences but the debug menu is enabled using the defaults command or secrets.

The 2 together are roughly the same as the debug menu in Safari 3.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: tyip on Jul 02, '09 01:50:19PM

How do you do the same thing to Safari for Windows? Thanks.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: las_vegas on Jul 03, '09 09:21:53PM

Yes. It can be enabled in Windows, but requires editing the file: c:\Documents and Settings\<username>\Application Data\Apple Computer\Preferences\com.apple.safari.plist

Unfortunately, the file is encoded and needs to be edited on a Mac using the Developers Tool "Property List Editor". If you send the file to a Mac user and have them add the boolean item "IncludeInternalDebugMenu" set to "True" and replace it in the above location the debug menu will be enabled.

LasVegas



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: micmoo on Jul 02, '09 09:25:19AM

The advance tab only has "Enable Develop", debug is different.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: dksp on Jul 02, '09 11:50:37AM

OK, you're right ;)

I'm using french OS X, so I thought the Debug menu had been translated.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: frank_martin on Jul 02, '09 09:41:23PM
SafariStand has an option in the GUI to toggle the Debug menu. It is a free InputManager.

http://hetima.com/safari/stand-e.html

[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: CyberSkull on Jul 03, '09 02:59:56AM
Looking thru Safari 4's .plist, it looks like the property is IncludeDebugMenu, a number set at -1. So the code would be: defaults write com.apple.Safari IncludeDebugMenu 1

[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: CyberSkull on Jul 08, '09 02:34:52AM

Bah, this is what I get for posting half-asleep!



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: mshmgi on Jul 03, '09 05:10:51AM

Check the "Advanced" tab of the preferences menu. The very last item is conspicuously labeled "Show Develop Menu In Menu Bar".



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: robg on Jul 03, '09 05:19:06AM

See the above comments. As of Safari 4, the two are distinct.

-rob.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: mshmgi on Jul 03, '09 07:28:18AM

Woops! My bad ... Develop != Debug. Sorry for the confusion.



[ Reply to This | # ]
Enable the Debug menu in Safari 4
Authored by: blatherskite on Jul 03, '09 09:52:22AM

you know if you get webkit, which is the same as safari - there is a checkbox in the "advanced" preference to turn on the debug menu. Plus with webkit, you'll get nighly builds of safari.



[ Reply to This | # ]
Enable the Debug menu in Safari
Authored by: chleuasme on Jul 03, '09 11:36:29PM
Hey, that's my hint! ;-)))

Note this default preference modification dates back to Safari 3, not 4 ;-)

[ Reply to This | # ]

Enable the Debug menu in Safari
Authored by: Frederico on Jul 04, '09 10:50:40PM

Yes, you are correct; I failed to make that clear when robg and I were going back and forth on this; I did not have to reenable the debug menu when upgrading from 3 to 4; it respected my existing prefs from 3.



[ Reply to This | # ]