Google Chrome dev tools automatically opens the 'drawer' pane

旧时模样 提交于 2019-12-03 22:46:22

This was annoying me to no end and I could never figure out why it was automatically opening. Apparently the fix, at least in my case, is that I went into the Emulation tab inside of the drawer and disabled any of the overrides. Everything in blue is highlighted as an override. Disabling those seems to have fixed the problem for me.

Ed .

Offering Phil Rykoff's comment as a solution...

Disabling JavaScript source maps seems to do the trick for me.

Settings > Enable JavaScript source maps

I was getting an error parsing my source maps so this could well be the cause for those with similar errors:

Failed to parse SourceMap: https://myapp/vendor.map

Found the solution press the "Escape" key when you're on the Developer Tools

There is also a setting under Appearance -> Show 'Emulation'/'Rendering' view in console drawer which will turn them off by default. But if you have some overrides then the panel still popup when you open Developer Tools.

  1. In the DevTools, click the hamburger-icon.
  2. Click 'Hide console'

Further to Ed's solution (which did fix my problem) the issue appears to be that the whatever page you are viewing is generating a console error- which in this case just happens to be a SourceMap error.

Because the default tab on the Dev Tools pane is "Elements" it appears that Chrome opens the console drawer so that the error message is visible when you reload. Rearranging the tabs in the Dev Tools so that console is the first item solves the issue, and I could re-enable SourceMap errors.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!