How to make Google Chrome JavaScript console persistent?

121,679

Solution 1

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

Solution 2

enter image description here

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

Solution 3

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

Solution 4

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

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

console options

Solution 5

Try this to enable console on popups

enter image description here

Share:
121,679

Related videos on Youtube

Zlatko
Author by

Zlatko

Web Tech Expert

Updated on January 20, 2022

Comments

  • Zlatko
    Zlatko over 2 years

    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"

    • Hunter
      Hunter about 5 years
      its just "Preserve Log" now. I was being driven nuts and this post saved me a lot of time. thankyou lol
  • Zlatko
    Zlatko over 13 years
    I suspected this. It's the reason why I have to keep Firefox around. Even FireBug Lite doesn't have persistent console.
  • Zlatko
    Zlatko over 13 years
    I'll have to learn how it was done in FireBug and make my first google-chrome extension :)
  • BenM
    BenM over 13 years
    That would be great if you do - keep me posted!
  • Zlatko
    Zlatko almost 13 years
    Turned out I didn't need it bad anough :/
  • opsb
    opsb almost 12 years
    For anyone else that didn't no where Developer Tools > Settings are: when you've got the console open there's a cog in the bottom right of the screen, the "Preserve log upon navigation" is on the first tab in the Console section.
  • soletan
    soletan almost 12 years
    As of Chrome 17 right-clicking on console is providing access on that option either.
  • uneakharsh
    uneakharsh about 10 years
    Chrome provides this functionality
  • BenM
    BenM about 10 years
    @uneakharsh please do not downvote for that. Look at when the answer was written (March 2011). The functionality has been added since this answer was posted...
  • uneakharsh
    uneakharsh about 10 years
    @BenM I am not un-downvote it, it says its locked, also your reply was misleading, if its anyway possible then please delete your answer.
  • José Luis
    José Luis almost 10 years
    @uneakharsh Upvoting because this was the correct answer when it was written (Mar 2011). You don't delete answers, period.
  • uneakharsh
    uneakharsh almost 10 years
    @BenM "You don't delete answers." and who is the arbitrator to the rule? Ofcourse you delete answers when they are wrong. Do I have to be more obvious?
  • Zlatko
    Zlatko almost 10 years
    Wrong answers can be useful.
  • BenM
    BenM almost 10 years
    @uneakharsh I didn't say that. It was José Luis!
  • Roland
    Roland about 5 years
    As of 2019, for settings you click the three little vertically stacked dots in the far right on the Dev Tools menu bar :-)
  • Zlatko
    Zlatko over 2 years
    Losing focus is a different issue but thanks for making it known.