简体   繁体   English

如何从谷歌浏览器中删除所有最近的控制台命令

[英]How to remove all recent console commands from Google Chrome

Google Chrome v48.0.2564.116 (64-bit) for Mac OS seems to retain all console commands indefinitely. 适用于Mac OS的Google Chrome v48.0.2564.116(64位)似乎可以无限期保留所有控制台命令。 None of the following have any affect: 以下内容均无影响:

  • clear() 明确()
  • console.clear() console.clear()
  • Command-K Command-K
  • turning off "preserve log" and "show all messages" 关闭“保留日志”和“显示所有消息”
  • Clear browsing data, from the beginning of time, all options check marked - removing all cookies 从一开始便清除浏览数据,所有选项都被选中-删除所有cookie
  • quitting and restarting or shutting down and rebooting. 退出并重新启动或关闭并重新启动。
  • Any combo of the above. 以上任何组合。
  • Unable to locate a chrome_debug.log file anywhere on the system (ie logging is not check marked). 无法在系统上的任何位置找到chrome_debug.log文件(即未选中日志记录)。
  • Trashing Google Chrome and the associated library files then re-installing got rid of the console history, but the new version nonetheless holds all console subsequent console entries indefinitely. 删除Google Chrome和关联的库文件,然后重新安装,摆脱了控制台历史记录,但是新版本仍然无限期保留所有控制台后续控制台条目。

Any insights? 有什么见解吗? Any idea where this information gets stored? 任何知道该信息存储在哪里?

Thanks to Karmiphuc and the following link: How to remove all recent console command which mostly answers the question. 多亏了Karmiphuc和以下链接: 如何删除所有最近能回答该问题的所有控制台命令

It's slightly understated there that, on Mac OS at least, you have to call the developer tools twice consecutively. 至少在Mac OS上,您必须连续两次调用开发人员工具,这在这里被低估了。

So 1st pull up a browser window, and do Command-Shift-I (Mac shortcut). 因此,首先打开一个浏览器窗口,然后执行Command-Shift-I(Mac快捷方式)。

Then, making sure the Developer Tools window is undocked, do a second Command-Shift-I which pulls up yet another Developer Tools window. 然后,确保取消固定“开发人员工具”窗口,然后执行第二个 Command-Shift-I,这将拉出另一个“开发人员工具”窗口。

Now look under Local Storage > chrome-devtools://devtools > consoleHistory. 现在,在本地存储> chrome-devtools:// devtools> consoleHistory下。

If you are using windows 10. Just Simply go the console and right click then click on clear console 如果您使用的是Windows 10,只需简单地进入控制台并右键单击,然后单击清除控制台即可。 这是我的浏览器的屏幕截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM