Auto-scrolling Chrome's DevTools console

后端 未结 7 1753
甜味超标
甜味超标 2020-12-15 03:40

Since its inception few years back, Chrome has become a de-facto IDE for web development. I\'ve been using it\'s Canary(Version 28.0.1464.0) channel for quite a bit and been

7条回答
  •  青春惊慌失措
    2020-12-15 04:06

    One Reason why it's happening:

    Logging of HTML elements into the console makes the console view lose the last console message.

    How to solve it:

    Instead of doing something like this:

    console.log("Some logging message:", html_element)

    try this (wrapped the messages with brackets)

    console.log(["Some logging message:", html_element])

提交回复
热议问题