Scrolling down in Chrome dev tools when paused in debugger

后端 未结 3 1226
挽巷
挽巷 2021-01-31 07:30

Is there any way to scroll down on the page while Chrome is paused in debugger mode without unpausing?

相关标签:
3条回答
  • 2021-01-31 07:49

    To enable scroll, enter, in console: document.body.style.overflow = 'auto'

    0 讨论(0)
  • 2021-01-31 07:58

    Taken from here.

    An easy workaround for the scrolling lock-up is to just jump to the console, and:

    window.scrollTo(0, 800). (Replace 800 as needed)

    0 讨论(0)
  • 2021-01-31 08:06

    If your tools are docked, you can undock it to see a bit more.

    Another method:

    1. Go to the Elements tab.
    2. Right-click on any visible element (i.e. not hidden, display:none, etc.).
    3. Choose the "Scroll Into View" context menu entry.
    4. Chrome will scroll the page if necessary to get the element in the visible portion of the window.
    0 讨论(0)
提交回复
热议问题