This question already has an answer here:
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.
Currently not possible. Star this bug report, hopefully it will be implemented one day.
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