[ACCEPTED]-Why does Google Chrome group identical console.log messages?-google-chrome-devtools

Accepted answer
Score: 15

In your Devtools Console:

  1. press the combination CTRL+SHIFT+P.
  2. Write: "show timestamps"
  3. Select it!
  4. Done!

Each output to 1 the console, will have its own line!

Score: 4

If you click on the cog on the top right 4 of the console window, you are given the 3 option to "Group similar", which 2 is probably checked, if you un-check this, it 1 will show each line separately.

example console with cog

Score: 3

Well, I appear to have found a decent enough 11 work around... I modified my logging function 10 to the following:

function WriteToLog(msg, clear) {
    try {
        var now = new Date();
        if (clear) {
            console.clear();
        }
        console.log('(' + now.getTime() + ') - ' + msg);
    } catch (e) {

    }
}

This will get the number 9 of milliseconds since 1/1/1970... Which 8 should be distinct enough for logging any 7 process on any computer I will own in the 6 near future. :)

It makes the logs a little 5 more difficult to read, and the value is 4 pretty much useless... but it is distinct 3 enough to circumvent the default tally behavior.

Thanks 2 for looking. I hope I'm not the only one 1 who seriously dislikes this feature.

More Related questions