Zlatko
Zlatko

Reputation: 19578

How to make Google Chrome JavaScript console persistent?

Since I'm building a dynamic site, I need to track the changes between pages, ie. Ajax calls, POST, GET stuff and similar stuff.

I'm looking for the same functionality like in Firebug (where you can enable "persistent" and the console is not cleared every time you reload a page or submit a form.

So, my questions is: is there a way to make Google Chrome JavaScript console persistent? (And if yes, how?)

Update: Copying the answer here, if anyone's still looking for this, Chrome 14+ has a setting in Developer Tools > Settings labelled "Console: Preserve log on navigation".

Update 2: the latest versions of Chrome (33+) have this option by right-clicking in the console.

Update 3 (late 2017): The latest versions of Chrome (60+) have this option by opening the console, clicking the gear in the top right corner and selecting "preserve log"

Upvotes: 390

Views: 180453

Answers (7)

Thomas Rokicki
Thomas Rokicki

Reputation: 654

Chrome Version 124.0.6367.94 (Official Build) (arm64)

  1. Click the settings gear in top right corner of Developer Tools

click settings gear

  1. Navigate to Preferences

enter image description here

  1. Scroll down to Console and toggle Preserve log upon navigation

enter image description here


Chrome Version 73.0.3683.86 (Official Build) (64-bit):

  1. Click the ellipsis in top right of Developer Tools
  2. Navigate to Settings > Preferences > Console
  3. Check Preserve log upon navigation

Upvotes: 17

atazmin
atazmin

Reputation: 5707

In Chrome v102

  1. I opened Chrome Dev Tools,
  2. I clicked on "gear" icon (Top right corner)
  3. Enable "Preserve log" checkbox

enter image description here

enter image description here

Upvotes: 3

werwuifi
werwuifi

Reputation: 409

I had the "preserve logs" options enabled and still had the Console losing focus to the Sources tab. If that happens (apparently during debugging), it helps to disable "Focus sources panel when triggering a breakpoint" in "Settings > Preferences > Sources".

Upvotes: 0

Simon
Simon

Reputation: 3110

enter image description here

at Version 67.0.3396.87 (Official Build) (64-bit)

Upvotes: 77

Krishnam
Krishnam

Reputation: 849

Try this to enable console on popups

enter image description here

Upvotes: 3

BenM
BenM

Reputation: 53246

Unfortunately, Chrome doesn't support that functionality yet, although there was talk in December 2010 about adding in the next major release...

This answer is no longer valid

Upvotes: 12

Nick Cox
Nick Cox

Reputation: 6472

If anyone's still looking for this, I'm on Chrome 15.0.874.58 beta-m and I have a checkbox in Developer Tools > Settings labelled "Console: Preserve log on navigation". Does the job nicely.

image of setting

Upvotes: 510

Related Questions