Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari Developer Tools: Preserve Network Log on Navigation

When using Safari Web Inspector to view the Network Log, the log is reset upon navigation, i.e. navigating to a different page clears the log.

In the Chrome Developer Tools, I can easily persist the network log by checking the "Preserve log" checkbox in the Network tab. In Firefox Developer Tools, I can preserve the network log by checking "Enable persistent logs" in the developer tools preferences.

With this persistence enabled, the network log remains intact until I manually clear the output, simplifying the process of tracking requests and redirects that happen during navigation to a new page.

Is there a similar feature in Safari Web Inspector?

like image 912
BenHohner Avatar asked Jan 05 '17 21:01

BenHohner


People also ask

How do I view the console log in Safari?

Apple Safari To do that, go into Safari's preferences (Safari Menu > Preferences) and select the Advanced Tab. Once that menu is enabled, you will find the developer console by clicking on Develop > Show Javascript Console. You can also use the shortcut Option + ⌘ + C .

Does Safari have dev tools?

If you're a web developer, the Safari Develop menu provides tools you can use to make sure your website works well with all standards-based web browsers. If you don't see the Develop menu in the menu bar, choose Safari > Preferences, click Advanced, then select “Show Develop menu in menu bar.”


1 Answers

In Safari 11.1.2 this is a setting on each tab under the checkbox "Preserve Log"

Console tab

Network tab

Note that if your Web Inspector window is too narrow to show all options, you'll have to expand it until it is wide enough to display the Preserve Log option, as mentioned in an answer by ShortFuse.


In Safari 11 this was in the Settings panel under "Network: Clear when page navigates", and it's sister setting "Console: Clear when page navigates".

Safari settings for network and console clearing when page navigates

like image 100
Daniel Compton Avatar answered Sep 18 '22 14:09

Daniel Compton