thanks_in_advance
thanks_in_advance

Reputation: 2743

"Preserve log" in Chrome Console to see "Uncaught TypeError"?

When I uncheck "Preserve log" in the console settings, I don't see the error below. Why are they related?


enter image description here

Upvotes: 0

Views: 2544

Answers (1)

Kayce Basques
Kayce Basques

Reputation: 26017

When Preserve Log is enabled, the Console preserves messages until you explicitly clear it. When it's disabled, the Console clears messages on page loads.

So, it looks like there's some code that runs just before you navigate to a new page, and that code is throwing an error. So while the error technically does get displayed (for a split-second) in both scenarios, it's probably just getting erased before you can see it with your eyes when you have Preserve Log disabled.

Upvotes: 1

Related Questions