Hiding Violations in Chrome Dev Console

Starting several versions ago, Google Chrome started showing JS violations in the developer console. While this can be useful at times, more often than not it just clutters up the console.

Dev console violations

Is there a way to disable these violations?

As a side note, also more recently, the checkboxes for different types of debug output are no longer checked in the developer console. Now you only have log levels: Verbose, Info, Warnings, Errors. I find the old method with checkboxes is much more useful - is there a way (flag?) To make them return?

+17


source to share


3 answers


Another option:

  • Open Console Settings (gear icon).
  • Select the Only user messages check box to show only messages recorded from scripts. Browser violations are hidden when this checkbox is enabled.


Chrome version: 62.0.3169.0 (Official Build) canary (64-bit)

enter image description here

+7


source


Yes, as of Chrome 58 :

  • Disabled the "Hide violations" checkbox. Set the logging level dropdown list
    for details on violations.


The following screenshot is set to Information: Log level options

+6


source


In the latest Chrome (64.0.3282.167) add the following to your Filter with All Levels selected:

-[Violation]

      

Not sure if any Regex is more supported (previous versions of Chrome had a checkbox that let you filter by expression), but -

it seems to "don't match".

+4


source







All Articles