Say, in my Google Chrome extension I do this:
console.log(msg);
and the Chrome debugger groups similar messages like so:
Is there any any to turn it off and have messages post just as they are?
It only collapses consecutive rows that are identical, I don't see it as much of a problem, but with the settings button in the top right corner of the console you can enable 'Show timestamps' which will put them on different lines:
You can see they only collapse consecutive duplicates with this:
msgs = ['hello', 'world', 'there'];
for (i = 0; i < 20; i++) console.log(msgs[Math.floor((i/3)%3)])
The console api has a lot of other functions that might help you follow your code. For instance console.count(label)
logs label with a count of how many times it's been logged, console.group()
lets you group other logging calls together and console.timeline(label)
lets you group logs into a timeline.
I can put a timestamp to address it myself. You see, this unnecessarily clutters the log. Evidently people who wrote that console log didn't think that the order of messages can be important (even if some of them are identical.)
The order is not changed
Yes, it is. In my screenshot those messages can come as such:
Page=
,iframe
,iframe
,Page=
,iframe
,iframe
but the way the console shows it, this order is not preserved.I don't believe you, can you show your code? Run my sample code and you can see that 'hello' shows in three groups and the words show in order. Also turn on timestamps and it will ungroup your log for you and post that.
Obviously it won't happen if I enable timestamps. Did you even read my 1st reply to your post above?