How to hide Violations in Chrome 58+ while showing console.debug?
Like Chrome 58
- Disabled the "Hide violations" checkbox. Set the logging level dropdown list
for details on violations.
This works, but I need to work on a project that uses console.debug
as spam layer, whereas a normal debug file is output with log
/ info
/ warn
.
So when I really need to read debug information, 99% of the console output is [Violation]
clutter and I really have to open Firefox to debug properly.
Does anyone know of a workaround / extension / hack / everything to just hide violations altogether while showing console.debug
?
As noted here: fooobar.com/questions/2418404 / ...
Open your console settings.
Check the box "Custom messages only" to show only registered messages from scripts
Browser violations are hidden when this checkbox is enabled.
Chrome version: 62.0.3169.0 (Official Build) Canary (64-bit)
As noted by @red: this will also hide warnings / errors that you have not explicitly selected / console output - worth remembering when you see unexplained behavior and (apparently) no errors in the console!
Welp, I think the only way to use RegEx: /^((?!\[Violation\]).)*$/
in the filter field and you will be able to show everything except violations.
Edit: This is no longer needed, you can check the box to show "User posts only".