Stop the console log clearing when you click a link in Google Chrome

JavascriptGoogle Chrome

Javascript Problem Overview


Referred to as the "JavaScript console", when you click on a link, the log is cleared.

Is there a way to stop this log from being cleared when you click on a link?

The problem is that an event triggered onClick is returning an error which makes it harder to diagnose because the error is only displayed for a short time before being cleared.

Thanks.

Javascript Solutions


Solution 1 - Javascript

This is an option in the developer tools. Right click the console, and select Preserve Log upon Navigation, or go through the settings menu (bottom right cog-looking icon in the devtools).

pic

Solution 2 - Javascript

Google Chrome Version: 65.0.3325.146 (Official Build) (64-bit)
Under the Network tab check Preserve Log

enter image description here

Google Chrome:Version 39.0.2171.95 (64-bit)
Console -> Settings -> Preserver log enter image description here

Solution 3 - Javascript

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHM2KView Question on Stackoverflow
Solution 1 - JavascriptBoris SmusView Answer on Stackoverflow
Solution 2 - JavascriptdsharewView Answer on Stackoverflow
Solution 3 - JavascriptkatspaughView Answer on Stackoverflow