且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Safari 开发者工具:如何在导航时保留控制台日志?

更新时间:2022-01-16 07:08:45

我不知道这是什么时候添加的,但它存在于 El Capitan 上的 Safari(Safari 9.0)中.它与 Chrome 中的工作方式相同(在控制台窗口中单击鼠标右键并选择保持登录导航").

I don't know when this was added, but it is present in Safari on El Capitan (Safari 9.0). It works the same as in Chrome (right click in the console window and select "Keep Log on Navigation").

更新:根据 Daniel Compton 的回答,现在在 Safari 11+ 中设置图标为控制台:页面导航时清除".

Update: As per Daniel Compton's answer, in Safari 11+ this is now under the settings icon as 'Console: Clear when page navigates'.

更新:设置现在恢复为保留日志".在 Safari 14+ 的开发者控制台中的网络"选项卡中

Update: The setting is now back to "Preserve log" in the Network tab in the developer console in Safari 14+