why does console.log not output in chrome?

后端 未结 3 1510
孤城傲影
孤城傲影 2021-01-21 02:28

Recently I read a query about \"What does console.log do\" and I read an answer, tried using it and found that despite the answer stating that it outputs to the console in googl

3条回答
  •  半阙折子戏
    2021-01-21 03:22

    Make sure that in the Developer Tools the Filter in the console section is set to All or Logs...

    I had a similar experience where I couldn't see any of my console.log output and it was because the console was set to filter on Errors only... All the log entries were there - they just weren't visible.

    Bonus marks: you can also Ctrl + Click to select multiple filters (Errors + Logs for example).

提交回复
热议问题