How do I make Firefox console group repeat outputs?

526 Views Asked by At

I recently switched to Firefox Quantum Developer from Chrome and I notice that duplicate log messages aren't collapsed like they are in Chrome:

Ungrouped Firefox DevTools console output

How would I make this all show as one, like this

Grouped Chrome DevTools console output

Edit: It seems that it does this for some outputs but not others, which I find strange.

1

There are 1 best solutions below

0
On

The Firefox DevTools console generally groups output.

For example, executing the code of your screenshot shows this: Grouped Firefox DevTools console output

Though, when you output objects it may happen that they are not grouped. If that's the case, check if the data is really identical (incl. source links). It may be that your output refers to different objects. E.g.

for(let i=0;i<100;i++) { console.log(["test"]); }

will output 100 times Array [ "test" ].

If you're sure your output refers to identical objects, ensure you have the latest version of Firefox installed. If it still occurs in the current version of Firefox, you should file a bug report.