问题
Is there a way to display only errors on the Chrome development console?
Right now it displays about a million warnings and I have to search through them to find the errors.
Thanks!
回答1:
In the latest version of Chrome console there is now a drop-down menu next to the Filter box, which is set to "Info" by default. This menu allows you to switch between only showing errors, warnings, info or verbose.
Pictured here:
回答2:
You can hold the Control button (Command on Mac) to select more than one filter, such as 'Error' and 'Info' but not 'Warn'.
回答3:
Use the filter buttons in the bottom status bar ("All", "Errors", "Warnings", "Logs")
回答4:
There is an errors filter in the bottom toolbar of the console. See the screenshot.

来源:https://stackoverflow.com/questions/9589018/show-only-errors-in-chrome-development-console