How to remove all recent console commands from Google Chrome

3.2k views Asked by At

Google Chrome v48.0.2564.116 (64-bit) for Mac OS seems to retain all console commands indefinitely. None of the following have any affect:

  • clear()
  • console.clear()
  • 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
  • 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 (i.e. logging is not check marked).
  • 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.

Any insights? Any idea where this information gets stored?

2

There are 2 answers

0
Joy Karmoker On

If you are using windows 10. Just Simply go the console and right click then click on clear console Here is the screen shot of my browser

0
WhatsYourFunction On

Thanks to Karmiphuc and the following link: How to remove all recent console command which mostly answers the question.

It's slightly understated there that, on Mac OS at least, you have to call the developer tools twice consecutively.

So 1st pull up a browser window, and do Command-Shift-I (Mac shortcut).

Then, making sure the Developer Tools window is undocked, do a second Command-Shift-I which pulls up yet another Developer Tools window.

Now look under Local Storage > chrome-devtools://devtools > consoleHistory.