Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Enable the Safari debug menu Web Browsers
While I look around Safari binary code, I found there is a hidden Debug menu. Type the following command in Terminal (while Safari is NOT running):
 % defaults write com.apple.Safari IncludeDebugMenu 1
Then launch Safari, and enjoy the new Debug menu.

[Editor's note: The debug menu has some useful options on it, so you may find this a very useful hack. If you ever wish to disable it again, just repeat the command with a "0" instead of a "1".]
    •    
  • Currently 3.40 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[343,992 views]  

Enable the Safari debug menu | 35 comments | Create New Account
Click here to return to the 'Enable the Safari debug menu' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Where is it?
Authored by: ivanjs on Fri, Jan 10 2003 at 1:25PM PST
Didn't see a debug menu when I typed in the line (closed Safari first).
Hmmm...
John

[ Reply to This | # ]
Oops! There it is!
Authored by: ivanjs on Fri, Jan 10 2003 at 1:27PM PST
Nevermind. I typed it in as superuser and it didn't work. After I exited SuperUser, and restarted Safari, it appeared.
John

[ Reply to This | # ]
no command line needed
Authored by: jjones on Fri, Jan 10 2003 at 3:28PM PST
just download Safari Enhancer
http://www.versiontracker.com/php/dlpage.php?id=17776&kind=1&db=vt3
and you will enable this w/o any command line tinkering needed. It also gives you some other nice options for bookmark importing and font line manipulation.

[ Reply to This | # ]
no command line needed
Authored by: jayfly on Sat, Jan 11 2003 at 12:43AM PST
If you don't want to download and install the app, you can issue the following commands to set the minimum font sizes:

To Add:
% defaults write com.apple.Safari WebKitMinimumFontSize 12
% defaults write com.apple.Safari WebKitMinimumFixedFontSize 12

To Delete:
% defaults delete com.apple.Safari WebKitMinimumFontSize
% defaults delete com.apple.Safari WebKitMinimumFixedFontSize

[ Reply to This | # ]
no command line needed
Authored by: tgbell on Sat, May 15 2004 at 5:19PM PDT
downloaded and tried "safari enhancer". throughly trashed my installed version of Safari under 10.2.8. won't launch. will have to reinstall

[ Reply to This | # ]
no command line needed
Authored by: LAFDHFC on Tue, May 2 2006 at 10:38AM PDT
FYI, that link is no longer any good.

[ Reply to This | # ]
This is very interesting
Authored by: kruger99mac on Fri, Jan 10 2003 at 6:41PM PST
If you open the terminal and run the command, the debugging menu shows up in the menu bar. It lists many options, this is very cool. Thanx


[ Reply to This | # ]
Hunting for Safari features with 'strings'
Authored by: sardu_mac on Fri, Jan 10 2003 at 7:59PM PST
/usr/bin/strings (might be installed with developer tools) can quickly extract bits of text from binary files. You'll need to data-mine a bit on the results, or pipe the command to grep (or bbedit). These are the main binary files with Safari: /Applications/Safari.app/Contents/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore /Applications/Safari.app/Contents/Frameworks/WebCore.framework/Versions/A/WebCore /Applications/Safari.app/Contents/Frameworks/WebFoundation.framework/Versions/A/WebFoundation /Applications/Safari.app/Contents/Frameworks/WebKit.framework/Versions/A/WebKit /Applications/Safari.app/Contents/MacOS/Safari The InterfaceBuilder files might also reveal information, you can get a list of them with: find /Applications/Safari.app -type f -name '*.nib'

[ Reply to This | # ]
Anyone know what this is?
Authored by: cjsnell on Sat, Jan 11 2003 at 2:16AM PST
rdar://Problem/2949109%22

A "Radar" link, found within the Keyboard and Mouse Shortcuts option, in the Debug menu. It sounds like it's some kind of internal Apple thing.

[ Reply to This | # ]
Anyone know what this is?
Authored by: sardu_mac on Sat, Jan 11 2003 at 4:58AM PST
It's probably a ticket number for whatever bug tracking software the Safari team is using.

(There is bug tracking software called RADAR but it's very Windows-centric, so I doubt they're using that.)

[ Reply to This | # ]
Anyone know what this is?
Authored by: maulani on Wed, Nov 26 2003 at 1:39PM PST
Radar is Apple's internally developed bug tracking system. They've been using this system for about 10 years.

[ Reply to This | # ]
Turn tabs on? WHERE?
Authored by: inblosam on Mon, Feb 24 2003 at 9:22AM PST
I can get the debug menu just fine, but I can't seem to get the tabs working as described in the ThinkSecret article. Do I have to enable something other than the debug menu? I tried apple-t (like in Chimera) but nothing happens.

[ Reply to This | # ]
Turn tabs on? WHERE?
Authored by: cudaboy_71 on Mon, Feb 24 2003 at 2:22PM PST
after you turn on the debug menu, you must select the 'tabbed browsing' entry in the debug menu. it is the last entry.

if you do not see it there, then you do not have build 62 or later. do an 'about safari' and make sure it ends in (v62)

remember, 62 is not officially released yet...people are talking about developer seeds or rogue copies floating around various p2p networks.

---
if it aint broke, break it!

[ Reply to This | # ]
Turn tabs on? WHERE?
Authored by: jamunson on Tue, Feb 25 2003 at 7:38AM PST
I just read the same article in "think Secret" and cant figure out where the tap browsing is either.They have the "Back/Forward cache" shown with a check mark on,but so does mine and still no tap browsing...
Jerry

---
Jerry

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: eno on Tue, Feb 25 2003 at 7:41AM PST
This great tip might work better if there wasn't a case error in it.

defaults write com.apple.safari IncludedebugMenu 1

should be:

defaults write com.apple.safari IncludeDebugMenu 1

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: XUSER on Tue, Sep 9 2003 at 12:32AM PDT
You're right. I could enable the debug menu using the hint, but could not turn it off by changing the 1 to a 0, until the command was entered without the case error.

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: missmaris on Tue, Feb 6 2007 at 12:25PM PST
thanks

[ Reply to This | # ]
Works in Panther
Authored by: petruk on Sun, Nov 2 2003 at 5:02AM PST
Yup this hint works in Panther! :o)

[ Reply to This | # ]
Works in Panther
Authored by: ktappe on Mon, Jan 5 2004 at 11:23AM PST
No, it doesn't. This hint is not compatible with v1.1.1 of Safari, the version delivered with Panther.

-Kurt

[ Reply to This | # ]
Works in Panther
Authored by: tonyo on Thu, Jan 22 2004 at 1:50PM PST
Yes, it is working in Panther. Worked fine on this 1.1.1 (v100.1) Safari build, Panther 10.3.2 (Xcode and Dev tools installed - you may need these?).

Tony

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: postins on Mon, Apr 18 2005 at 3:30PM PDT
Debug Menu is there, but there is no Export Safari bookmarks.
Activated menu thru Safari Enhancer and Terminal but in either cases there was no option to 'Export Safari bookmarks'

Help!

Running Safari 1.0.3 on OS X 10.2.8

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: RGS on Thu, Nov 3 2005 at 5:48AM PST
Can someone supply an Applescript to accomplish this? Thanks.

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: KenaiTheMacFan on Wed, Nov 16 2005 at 8:50PM PST
you can download the scripts at:
http://members.shaw.ca/mtoliver/files/DebugMenuScripts.zip

only took a few minutes.

---
Ian

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: wjackson on Tue, Apr 18 2006 at 5:09PM PDT
AppleScript for this feature:

copy the result as list to {buttonpressed}
if the buttonpressed is "Invisible" then
	try
		tell application "Safari" to quit
		do shell script "defaults write com.apple.Safari IncludeDebugMenu 0"
		delay 1
		tell application "Safari" to activate
	end try
else if the buttonpressed is "Visible" then
	try
		tell application "Safari" to quit
		do shell script "defaults write com.apple.Safari IncludeDebugMenu 1"
		delay 1
		tell application "Safari" to activate
	end try
end if

---
Will Jackson

[ Reply to This | # ]

Enable the Safari debug menu
Authored by: mdknapp on Mon, Jun 11 2007 at 1:16PM PDT
To enable the debug menu in Safari 3 for Windows:
===============================
In the file:
C:\Documents and Settings\USERNAME\Application Data\Apple Computer\Safari\Preferences

Add the following:
<key>IncludeDebugMenu</key>
<true/>

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: bschoate on Fri, May 2 2008 at 11:55AM PDT

Now that the menu has been relabeled "Develop", is this hint even necessary any more? I still see the "Develop" menu even though this setting is set to 0:

$ defaults read com.apple.Safari IncludeDebugMenu
0


[ Reply to This | # ]
Enable the Safari debug menu
Authored by: bschoate on Fri, May 2 2008 at 12:02PM PDT
Deleting the key doesn't make any difference either. The "Develop" menu is still there. I think this is shown by default now.

[ Reply to This | # ]
New key name for Develop menu
Authored by: fredcondo on Tue, May 6 2008 at 12:33PM PDT
The key for the Develop menu is IncludeDevelopMenu. That's why IncludeDebugMenu has no effect on the Develop menu.

[ Reply to This | # ]
Enable the Safari DEVELOP menu
Authored by: morespace54 on Tue, May 6 2008 at 1:49PM PDT
For future reference, as mentioned earlier, in the version 3 of Safari (3.1.1), the Menu is now called "Develop" instead of "Debug". So the command would be:

% defaults write com.apple.Safari IncludeDevelopMenu 1

% defaults write com.apple.Safari IncludeDevelopMenu 0

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: chleuasme on Tue, May 6 2008 at 5:43PM PDT
Since the release of Safari 3.1, there now have an option in Safari's Preferences > Advanced to show/hide the Develop menu (the local help give more details if needed).

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: DoctorJ on Wed, Apr 15 2009 at 9:08AM PDT
On Safari 3.2.1, the 'Develop' menu doesn't have any sub choices that obviously relate to RSS. Can anybody confirm whether control of RSS has been moved elsewhere/removed/renamed?

If so, can we figure out a terminal command to directly access the RSS bit?

Note: on my machine, i turned off RSS long ago, and 3.2.1 seems to respect that. However, on my wife's machine i never got around to turning it off, and now can't find the switch...

---
Using a rusty Amiga 4000T & a shiny Mac PowerBook G4

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: chleuasme on Fri, Jun 13 2008 at 4:17PM PDT
On one hand the Develop menu, on the other hand the Debug menu:
defaults write com.apple.Safari IncludeInternalDebugMenu 1
WebDevelopers - WebKit

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: janeyq@mac.com on Mon, Aug 4 2008 at 7:31AM PDT
Hi. This was the most helpful comment to me. I now have a Develop and a Debug menu. I use the Open Page With and the User Agent items a lot. I find them very helpful especially on unfriendly to Mac sites. However, I can't find the old sort bookmarks option. What should I do to fix this? Thanks.

[ Reply to This | # ]
Enable the Safari debug menu
Authored by: palahala on Thu, Jul 2 2009 at 10:41AM PDT
Above, chleuasme mentioned IncludeInternalDebugMenu rather than IncludeDebugMenu. The name has indeed changed in Safari 4, and has its own hint now: Enable the Debug menu in Safari 4.

[ Reply to This | # ]
Disabling the Safari debug menu
Authored by: pbGuy on Fri, Jul 3 2009 at 9:17AM PDT
I've attempted to disable the Debug menu by replacing the terminal command "1" to a "0" but the Debug menu remains.

What am I doing incorrectly?

Thanks.

[ Reply to This | # ]