为什么Google Chrome浏览器将相同的console.log消息分组? [英] Why does Google Chrome group identical console.log messages?
问题描述
我到处都在寻找设法修改Google Chrome浏览器中开发人员工具控制台登录行为的方法.我来不及了.
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.
默认情况下,控制台不会显示每次记录的内容.似乎保持了将相同消息发送到日志的次数.当您记录项目以验证或调试Web应用程序中的工作流时,这无济于事.
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.
如果我要登录:
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?
谢谢
JDF
推荐答案
在您的Devtools控制台中:
In your Devtools Console:
- 按组合键CTRL + SHIFT + P.
- 写:显示时间戳记"
- 选择它!
- 完成!
每个输出到控制台的行都有自己的一行!
Each output to the console, will have its own line!
这篇关于为什么Google Chrome浏览器将相同的console.log消息分组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!