'How can I let the Debug Console print something 5 times instead of 1 time in Javascript, Visual Studio Code?

I am new to JavaScript. Is there a way to see the Hello 5 times instead see it showing that it was printed 5 times?

enter image description here



Solution 1:[1]

Disable the setting:

Debug > Console: Collapse Identical Lines

Controls if the debug console should collapse identical lines and show a number of occurrences with a badge.

Solution 2:[2]

Just put a counter with the console logs to see hello 5 times. Like

const a = [1, 2, 3, 4, 5];
a.forEach((num) => console.log(num, "hello"))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mark
Solution 2 codeswithroh