How to search all loaded scripts in Chrome Developer Tools?

后端 未结 7 1820
无人共我
无人共我 2020-11-30 16:02

In Firebug, you can search some text and it will look for it in all scripts loaded on a page. Can the same be done in Chrome Developer tools while debugging client script? I

7条回答
  •  一整个雨季
    2020-11-30 16:41

    Your text may be located in the networking response.There is also a search tool in the Network tab, and you may try it.

    What you want to search for may stay either in DOM or in memory. If it is not in DOM, well, it may be in memory, because you have just see it in your computer screen anyway. The text you search for may be loaded either from scripts in the initial DOM or from response in the later request.

提交回复
热议问题