问题
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