How to go to a specific file in Chrome Developer Tools?

纵饮孤独 提交于 2019-12-03 02:06:48

问题


I am developing a web application with a heavy front-end approach. By using Dojo and the AMD-way, I currently have testing screens which may easily load over a hundred different javascript files.

When I want to debug for any specific problem, or verify if I am seeing an old version of a specific file, I find it really hard to find my files in the Sources tab in the Chrome Developer Tools.

Is there any shortcut or action I can make that will let me type the name of a file and will take me to the source of that file?


回答1:


While in the sources tab use CTRL+O (+O for Mac) to search scripts, stylesheets and snippets by filename.

(use CTRL+SHIFT+O to filter/navigate to a JavaScript function/CSS rule when viewing a file)

[Chrome Devtools Cheatsheet]




回答2:


CTRL + P brings up the search input in Windows.

+ P — in Mac.




回答3:


In Windows:

Use CTRL+SHIFT+F to search for content in files.

Use CTRL+SHIFT+O to search for file names.




回答4:


Mac: Command + O Windows: Ctrl + O



来源:https://stackoverflow.com/questions/14608075/how-to-go-to-a-specific-file-in-chrome-developer-tools

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