Enable JavaScript debug menu in Safari in Mac OS

Apple Safari in Mac does have a hidden Debug menu that is useful for finding out the JS errors in the page. But, this is disabled by default. You can easily enable this using the following command in the terminal when Safari is not running.

Terminal

% defaults write com.apple.Safari IncludeDebugMenu 1
Now, open Safari and you can see an additional menu on the top.

You can always disable this menu by replacing the 1 at the end of the command with 0 and executing again.

Comments

Popular posts from this blog

Hide notification content in Android lock screen for Messages, email, whatsapp and selected apps.

Array functions in JavaScript