7

I use Safari 7.03 for web development.

One thing I noticed is that the console log doesn't re-set on a reload of the page. You need to clear it manually.

So if you run a page with a JS error, it shows, then you fix the error in your JS code and reload the page and the error is still in the log -- but it's from the LAST time.

Chrome clears the error log every time. Is this a setting in Safari somewhere?

2
  • yes, this is annoying. Especially when the little clear console trashcan has chosen to disappear.
    – dwightk
    Commented Apr 25, 2014 at 14:43
  • this same in safari 9.1
    – ramusus
    Commented May 29, 2016 at 12:51

1 Answer 1

3

Either inline in your HTML, or in an external Javascript file. Call the function console.clear();

Now, every time you go to reload your page, the console will be cleared.

1
  • 1
    This does not work in Safari. Apparently a bug? Commented Aug 21, 2015 at 13:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .