Safari long had a hidden Debug menu that contained useful capabilities. Originally intended to assist developers in debugging web pages and the JavaScript code that runs on them, the debug menu was hidden away because the commands that were included in the menu could wreak havoc on web pages.
Enable Safari's Debug Menu
Close Safari if you have it open and then:
-
Go to Applications > Utilities and launch Terminal.
-
Enter the following command line into Terminal by typing it or using copy and paste. Enter the command as a single line in Terminal, even though your browser may break it into multiple lines.
defaults write com.apple.Safari IncludeInternalDebugMenu 1
-
Press Enter or Return.
-
Relaunch Safari. The new Debug menu is available.
Disable Safari’s Debug Menu
If you want to disable the Debug menu, you can do so at any time, again using Terminal. Close Safari if it is open and then:
-
Launch Terminal.
-
Enter the following command line into Terminal by typing it or using copy and paste. Enter the command as a single line in Terminal, even though your browser may break it into multiple lines.
defaults write com.apple.Safari IncludeInternalDebugMenu 0
-
Press Enter or Return.
-
Relaunch Safari. The Debug menu is gone.
Favorite Safari Debug Menu Items
With the Debug menu under your control, you can try out various menu items. Not all of the menu items are usable because many are designed to be used in a development environment where you have control over the web server. Nevertheless, useful items include:
- Force Repaint.
- Show Frame Rate Meter, which displays CPU load, page frame rate speed, and updates being made to the page, all in the form of analog speedometers.
- Various flag options.
- Sync iCloud History.
- Depending on the version of Safari, the option to reset and recompute Top Sites.
Safari Debug Menu in OS X El Capitan and Earlier
With the release of Safari 4 in the summer of 2008, many useful menu items in the Debug menu were moved to the new Develop menu.
However, the hidden Debug menu remained and even picked up a command or two as Safari development continued. It was removed completely from OS X Sierra and later releases of the operating system.
Apple made accessing the hidden Develop menu an easy process, only requiring a trip to the Safari's Preferences or Settings menu.
Accessing the Debug menu, on the other hand, was a bit more complicated.
Enabling the Safari debug window required the use of Terminal, a powerful tool for accessing hidden features of the Mac operating system and its many apps.
The above is the detailed content of How to Enable Safari's Debug Menu to Gain Added Capabilities. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Yandex (Яндекс) is Russia's largest search engine and the core of Russia's Internet ecosystem. Yandex is not just a search engine, it also provides a wide range of services, including maps, navigation, music, video, translation, cloud storage, payment systems, etc., covering almost all aspects of the daily life of Russian netizens. By logging in directly to Yandex, you can have a deeper understanding of Russia's Internet environment and obtain more accurate and localized search results.

To log in to AO3, first access the available mirrored sites, and then follow the steps: 1. Select the mirrored site and enter the URL; 2. Click the "Log In" button in the upper right corner of the homepage or in the navigation bar; 3. Enter the user name and password; 4. Select "Remember me" to automatically log in next time (but do not select public computers); 5. After confirming that the information is correct, click "Log In" to complete the login. If you encounter problems, you can check the network connection, confirm the correctness of the username and password, clear the browser cache and cookies, change the mirrored site, and try to use the Tor browser. In the end, you can contact AO3 customer service if it still cannot be resolved. In addition, when using AO3, you must respect the author's copyright and pay attention to content grading

The home page is one of the most basic terms that anyone learning how to use the web will come across. Home page can mean a few different things, depending on the context.A home page (also written as homepage) can be considered any of the following:A

The short video entrance of B station is mainly entered through the vertical screen short video mode (Story Mode) and dynamic publishing function. 1. There are three ways to enter the Story Mode: 1. Click the avatar icon in the upper left corner of the homepage to enter the vertical screen interface, which can slide to switch video and playback modes; 2. Click the video with the "vertical screen" label in the double column information flow of the homepage to enter directly; 3. Automatically enter when viewing published vertical screen videos through the personal homepage (can be turned off in settings). 2. Dynamically publishing short videos can be operated through the mobile phone or web page: 1. Click the "Publish" button in the upper right corner of the "My" page on the mobile phone and select the "Video" type to upload or shoot; 2. Click on the web page to submit and upload the video and edit and information settings. 3. Other entrances include partition browsing

This article explains the process of pinning websites in Safari and macOS, as well as how to unpin a website from the tab bar. This guide is applicable to macOS 10.11 and Safari 9 or newer versions.How to Pin a Website in Safari Safari received sever

The design philosophy of the Palipali platform is "user first, content is king". It knows that only by truly meeting user needs and providing high-quality content can we stand out in the fierce market competition. Therefore, Palipali strives to excel in content selection, striving to cover various types and meet the preferences of different users. Whether it is a classic old movie or the latest popular TV series; whether it is hot-blooded anime or casual games, Palipali can provide users with a wealth of choices.

Chrome Remote Desktop is a free remote desktop program from Google that runs as an extension that's paired with the Chrome web browser.You can use it to set up any computer running Chrome to be a host computer that you can connect to at any time, whe

Safari web browser is the default for the iPhone, iPad, and macOS, first released by Apple in 2003 and briefly offered on Windows from 2007 to 2012. The popularity of the Safari browser exploded with the iPhone and the iPad, and currently has about a
