System/OS

Enable Safari Hidden Debug Menu in Mac OS X

by hooni posted Feb 07, 2017
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

Enable Safari Hidden Debug Menu in Mac OS X

- 맥 OS X 에서 사파리 브라우저 숨겨진 메뉴 활성화 방법


debug_menu_safari01.jpg

Safari has a hidden “Debug” menu that offers some additional features for debugging the browser, including stress and load tests, sampling, javascript error logging, the ability to intentionally crash a page, and more. Intended for Safari developers, the Debug menu is different from the Developer menu, which is geared more at web developers, although there are a few options in the Debug menu that general web developers would find useful as well, notably advanced cache choices and CSS animation controls. If this sounds confusing, just enable both of them and poke around and you’ll quickly see the differences.

Here’s how to enable the hidden Debug menu in Safari for Mac OS X with the assistance of a defaults command string in the terminal.

How to Enable Safari’s Hidden Debug Menu on Mac

This works in all versions of Safari in nearly all versions of OS X, from all modern releases to most prior versions as well:

  1. Quit Safari in OS X
  2. Launch the Terminal from /Applications/Utilities/ and enter the following defaults write command exactly:
  3. defaults write com.apple.Safari IncludeInternalDebugMenu 1

  4. Hit return, then relaunch Safari

The “Debug” menu will be visible to the far right in Safari’s menubar choices.

debug_menu_safari02.jpg

If you want to disable the menu, go back to the Terminal and type:

defaults write com.apple.Safari IncludeInternalDebugMenu 0

Again you will need to relaunch Safari for changes to take effect.

We’ve poked around in the Debug menu before to stop auto-refreshing in Safari by disabling multi-process windows, that is no longer necessary with the latest version of Safari, however.

debug_menu_safari03.jpg

Generally aimed at developers, Safari debugging, and web workers, the Debug menu has many features that can be useful to more advanced Safari users as well.