Searching inside a JSON object in Google Chrome DevTools

陌路散爱 提交于 2019-12-04 15:38:54

问题


I love Google Chrome's DevTools. But, when debugging I sometimes need to search for a particular property or value in a JSON request/response object (within a request/response in the "Network" tab). This can be tedious if the JSON object is large. Do the DevTools support such a search?

In the example below, I was hoping that searching for "new_user" would highlight the property in the JSON object shown.


UPDATE: Since this question was asked, this functionality has been added to Chrome!


回答1:


No existing functionality to search the json tree view. You can file a new issue in the issue tracker to see if it could get added.




回答2:


The feature seem to be now implemented:

  1. Click on the XHR request you want to see.
  2. Click on the "Preview" or "Response" tab and do CTRL + F


来源:https://stackoverflow.com/questions/31265532/searching-inside-a-json-object-in-google-chrome-devtools

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