Developer Tools - preserve console record [duplicate]

北城以北 提交于 2019-12-03 15:28:20

问题


For Network, Profiles and Timeline, there is a record button, which preserves the log. Is there anyway I can do the same for console log?

Sometimes, if there is an error in the script or during post submission, the page stop rendering or redirects and the console log clears. Is there any way to see the previous logs.


回答1:


Currently not possible. Star this bug report, hopefully it will be implemented one day.




回答2:


Click the settings button in the lower right corner. Under General > Console check "Preserve log upon navigation". I should mention that I'm using Chrome version 23.0.1271.101, so if you don't see the option try upgrading.

Update:

As of Chrome 59.0.3071.115 you need to click on the Console tab then click on the little gear icon and check Preserve log.



来源:https://stackoverflow.com/questions/5928492/developer-tools-preserve-console-record

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