How to show code coverage feature in Chrome/Canary Dev Tools

天涯浪子 提交于 2019-12-10 04:12:15

问题


Was reading using the chrome dev tools new code coverage feature and was having trouble trying to enable this feature.

I know that Canary enables this without the need to unflag, but I'm unsure where to locate this feature from within Chrome Devtools.


回答1:


With the developer tools window open, you can open the command menu using Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows, Linux), start typing Coverage and then select Show Coverage:

Alternatively, you can also select the three dots on the far right of the developer tools window, select More Tools and then select Coverage:




回答2:


It wasn't mentioned in the above post, but if you click the three dots in Chrome dev tools, the option for code coverage is shown in the menu.



来源:https://stackoverflow.com/questions/43394650/how-to-show-code-coverage-feature-in-chrome-canary-dev-tools

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