This page was useful for testing https://devtools.glitch.me/console/log.html This test page works but the page I was dev'ing on localhost was behaving as per OPs situation; logs counted in the sidebar but no output. Sanity checking in Safari also showed no logged output. So I added a console.log in some JS early on in my page and that logged fine. Conclusion, I think I am misunderstanding how the Chrome console sidebar works. It's not actually hiding my page's logs but some other logs that I assumed were from my code. I don't know why.
9条答案
按热度按时间cu6pst1q1#
我没有找到这个问题的原因,但当我从设置中单击恢复默认值并重新加载按钮时,问题得到了解决。
z6psavjg2#
该问题可能是因为您在控制台中选中了某些筛选器。
尝试取消选中它。
我可以通过取消选中“仅选定上下文”
voj3qocg3#
尝试删除筛选器中的所有内容:
67up9zun4#
检查控制台搜索栏。你已经在里面输入了一些东西,所以如果它没有找到那个搜索请求,它就不会显示任何东西。我刚刚遇到了同样的问题。Chrome应该添加一个声明,提到一些控制台结果被隐藏或某种警告。
lyr7nygr5#
取消选中两个选项。仅隐藏网络和选择上下文
8wigbo566#
保持以下选项的选中和不选中对我来说很有效。如果你有问题,这里是图片。大多数情况下,只使用选定的上下文,隐藏网络消息,启用自定义格式化程序对我来说很有效。
sqserrrh7#
我解决了一个类似的问题,通过选择所有级别下拉列表并将其设置为默认值:
c7rzv4ha8#
检查〉〉控制台〉〉日志级别:选择(默认级别)
jtoj6r0c9#
This page was useful for testing https://devtools.glitch.me/console/log.html
This test page works but the page I was dev'ing on localhost was behaving as per OPs situation; logs counted in the sidebar but no output.
Sanity checking in Safari also showed no logged output.
So I added a
console.log
in some JS early on in my page and that logged fine.Conclusion, I think I am misunderstanding how the Chrome console sidebar works. It's not actually hiding my page's logs but some other logs that I assumed were from my code. I don't know why.