What is the small blue circle in the Chrome console log?

后端 未结 2 1868
北荒
北荒 2020-12-14 11:33

I\'m logging dynamic JavaScript code into my Chrome console using console.log.

Sometimes I get a small blue circle on one line with a number in it.

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 12:01

    This is called "message stacking". From Google Developers:

    Message stacking

    If a message is consecutively repeated, rather than printing out each instance of the message on a new line, the Console "stacks" the messages and shows a number in the left margin instead. The number indicates how many times the message has repeated.

    It can be turned off by enabling "Show timestamps" for the Console in general settings.

提交回复
热议问题