34

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?

corysimmons
  • 7,296
  • 4
  • 57
  • 65
  • 5
    Having exactly the same problem over the few weeks, it's driving me insane!! – 4uroraskye Jul 01 '19 at 15:30
  • If I remember where this lead me, I think it's just a Chrome bug that is very very low priority for them, so don't hold your breath. :( – corysimmons Jul 02 '19 at 05:53
  • Yeah, i raised another bug with them so it gained some more attention, just watching for them to do something about it now. In the mean time, i figured out that the endless console errors i am getting were actually from ghostly - so i just disabled it instead. – 4uroraskye Aug 02 '19 at 11:11
  • 5
    Bug to star: https://bugs.chromium.org/p/chromium/issues/detail?id=901863 – ZachB Mar 31 '20 at 23:39
  • Thank you @ZachB. This is becoming insanely irritating – Pat Needham Apr 07 '20 at 15:46

4 Answers4

3

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

Eduard Kolosovskyi
  • 1,396
  • 12
  • 18
1

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

llsanketll
  • 278
  • 5
  • 11
  • 2
    Hi, welcome to SO. I'm here just to give feedback on your answer to make it better. Would you be able to provide more details and links to the solution so that other devs would have a better grasp of the cause and solutions? – mjabadilla May 18 '20 at 16:11
0

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

vikbert
  • 1,128
  • 11
  • 10
0

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

enter image description here