为什么 Google Chrome 将相同的 console.log 消息分组? [英] Why does Google Chrome group identical console.log messages?

查看:19
本文介绍了为什么 Google Chrome 将相同的 console.log 消息分组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种方法来修改开发人员工具控制台登录 Google Chrome 的行为.我没办法了.

默认情况下,控制台不会显示每次记录的时间.它似乎记录了将同一消息发送到日志的次数.当您记录项目以验证或调试 Web 应用程序中的工作流时,这无济于事.

如果我要登录:

<上一页>121123

我希望看到这一点,但你得到的更像是:

<上一页>(3) 1(2) 23

有什么方法可以改变这种行为并强制控制台向您显示已记录的每一项?

谢谢,

JDF

解决方案

在您的 Devtools 控制台中:

  1. 按组合键 CTRL+SHIFT+P.
  2. 写:显示时间戳"
  3. 选择它!
  4. 完成!

每个输出到控制台,都有自己的一行!

I've been looking everywhere trying to find a way to modify the behavior of the developer tools console logging in Google Chrome. I've come up short.

The console, by default, does not show each and every time logged. It appears to be keeping a tally of the number of times that the same message is sent to the log. This does not help when you are logging items to verify or debug workflow in a web application.

If I were to log:

1
2
1
1
2
3

I expect to see just that, but what you get is more like:

(3) 1
(2) 2
    3

Is there any way to change this behavior and force the console to show you each and every item that has been logged?

Thank you,

JDF

解决方案

In your Devtools Console:

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

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

这篇关于为什么 Google Chrome 将相同的 console.log 消息分组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆