corysimmons
corysimmons

Reputation: 7675

Make "Selected Context Only" persist in Chrome DevTools console settings

I get a ton of misc errors from misc Chrome Extensions in my console. If I go to settings and check "Selected Context Only" then they go away and everything is good.

If I ever close that tab, or open a fresh Chrome window, "Selected Context Only" is unchecked again.

Is it possible to get this setting persisted forever and ever?

Upvotes: 34

Views: 2890

Answers (4)

Enable below option in the console settings. It will persist the "Selected Context Only"

enter image description here

Upvotes: -1

Eduard Kolosovskyi
Eduard Kolosovskyi

Reputation: 1564

You can use the filter option as a workaround. For example I was able to hide warnings like 'DevTools failed to load SourceMap: Could not load content for...' with regex -/failed\sto\sload\ssource\smap/

enter image description here

Also you can find a documentation for filtering here https://developers.google.com/web/tools/chrome-devtools/console/reference#filter

Upvotes: 3

vikbert
vikbert

Reputation: 1616

I have the same problem with chrome and brave browser. To avoid showing the error messages comming from webpack dev server like the following screenshot. I defined negative filter in Console to filter them out.

/^((?!sockjs).)*$/

enter image description here enter image description here

Upvotes: 0

llsanketll
llsanketll

Reputation: 297

Selecting the same option form settings (f1) worked for me

Upvotes: 1

Related Questions