21

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.

OrangeDog
  • 36,653
  • 12
  • 122
  • 207
bsr
  • 57,282
  • 86
  • 216
  • 316

2 Answers2

42

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.

Preserve log upon navigation

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.

enter image description here

jwerre
  • 9,179
  • 9
  • 60
  • 69
9

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

serg
  • 109,619
  • 77
  • 317
  • 330
  • 3
    Just wanted to add that it *is* possible in iframes. On JSFiddle, the log stays persistent when you click the Run button again (i.e. iframe is reloaded but page is not). So you *could* create a workaround with this little code snippet: http://pastebin.com/rSxRsnnc. – pimvdb May 09 '11 at 15:01