문제

In previous versions of Safari the JavaScript console in the Developer Tools (aka Web Inspector) had a little 'clear' button at the bottom that emptied out console items, which was useful for getting rid of clutter between debug sessions.

As of Safari 6, the new Dev Tools don't seem to have such a button. Manually using clear() and console.clear() doesn't work either. The 'Clear Console' item in the contextual menu doesn't seem to do anything for me.

Short of console.log("\n\n\n\n\n\n\n\n\n"), is there a way to clear the console in Safari 6?

도움이 되었습니까?

해결책

Use Command-K (+K) to clear Safari 6 Web Inspector console.

다른 팁

As of May 2019:


Even though, current Safari version is far beyond 6 (it is 12, actually). A shortcut that works for me in FireFox 67.0, Safari 11.1.2, Chromium 76.0.3802.0 is:
Ctrl+L


P.S.: posting just in case somebody will come here looking for "cross-browser" solution (like I did).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 apple.stackexchange
scroll top