Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 2.82 / 5
  You rated: 3 / 5 (22 votes cast)
 
[475,036 views]  

Enable the Safari debug menu | 37 comments | Create New Account
Click here to return to the 'Enable the Safari debug menu' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Where is it?
Authored by: ivanjs on Jan 10, '03 01:25:11PM

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 Jan 10, '03 01:27:20PM

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 Jan 10, '03 03:28:34PM

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 Jan 11, '03 12:43:21AM

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 May 15, '04 05:19:45PM

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 May 02, '06 10:38:14AM

FYI, that link is no longer any good.



[ Reply to This | # ]
This is very interesting
Authored by: kruger99mac on Jan 10, '03 06:41:42PM

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 Jan 10, '03 07:59:12PM
/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 Jan 11, '03 02:16:36AM

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 Jan 11, '03 04:58:07AM

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 Nov 26, '03 01:39:05PM

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 Feb 24, '03 09:22:05AM

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 Feb 24, '03 02:22:42PM

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 Feb 25, '03 07:38:44AM

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 Feb 25, '03 07:41:02AM

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 Sep 09, '03 12:32:14AM

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 Feb 06, '07 12:25:02PM

thanks



[ Reply to This | # ]
Works in Panther
Authored by: petruk on Nov 02, '03 05:02:17AM

Yup this hint works in Panther! :o)



[ Reply to This | # ]
Works in Panther
Authored by: ktappe on Jan 05, '04 11:23:16AM

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 Jan 22, '04 01:50:26PM

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 Apr 18, '05 03:30:45PM

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 Nov 03, '05 05:48:13AM

Can someone supply an Applescript to accomplish this? Thanks.



[ Reply to This | # ]
Enable the Safari debug menu
Authored by: KenaiTheMacFan on Nov 16, '05 08:50:58PM

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 Apr 18, '06 05:09:24PM
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 Jun 11, '07 01:16:26PM

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 May 02, '08 11:55:35AM

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 May 02, '08 12:02:57PM

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 May 06, '08 12:33:29PM

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 May 06, '08 01:49:44PM

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 May 06, '08 05:43:55PM
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 Apr 15, '09 09:08:08AM

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 Jun 13, '08 04:17:45PM
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 Aug 04, '08 07:31:20AM

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 Jul 02, '09 10:41:02AM
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 Jul 03, '09 09:17:03AM

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 | # ]
Disabling the Safari debug menu
Authored by: knouse on Mar 14, '11 04:00:52PM

I also found IncludeDebugMenu doesn't work. But this did

defaults write com.apple.safari IncludeInternalDebugMenu 0

I quit Safari, ran the above in Terminal and started Safari.



[ Reply to This | # ]
Enable the Safari debug menu
Authored by: noredstar on Dec 26, '11 12:20:26PM

After I typed the command in the terminal, "no such job" appears. What am I missing?



[ Reply to This | # ]