Is there a way in Chrome console to search for strings in console outputs, even those collapsed?

前提是你 提交于 2019-12-11 07:04:33

问题


I don't want to just filter the console outputs, but search for string in it (showing or collapsed) as well. Is it possible?

CTRL+F cannot search inside collapsed outputs. For example, if the output is an Array[3], it's shown as a collapsed tree. Even if you click to expand to show details about the array, you can't search in there.


回答1:


The Filter text box now searches inside of collapsed output. For example, in the screenshot below you can see that the POST error with the expanded output contains a call to reportError.

When I put reportError in the Filter box and collapse the POST error, the only messages that aren't filtered out are the POST errors (meaning that you can assume that the reportError text is somewhere within the collapsed message.



来源:https://stackoverflow.com/questions/17033820/is-there-a-way-in-chrome-console-to-search-for-strings-in-console-outputs-even

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