Q:

Error logged in WebKit Web Inspector disappears because of page refresh

While hunting a Javascript error related to form submission. I saw an error appear in the Web Inspector then disappear immediately since the form submits and refreshes the page. Is there a console history or scrollback? How can I see what the error is?

A:

In Chrome, look for the "Preserve Log" check box in the console.
In Safari (9+), right click in console and select "Keep Log on Navigation".
This was solved awhile back (Safari Developer Tools: How to Preserve Log Upon Navigation?) but since I encountered the question again I figured I'd include an answer.

