Scrolling down in Chrome dev tools when paused in debugger

谁说胖子不能爱 提交于 2019-12-03 04:28:55

问题


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


回答1:


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.



回答2:


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)



来源:https://stackoverflow.com/questions/19328240/scrolling-down-in-chrome-dev-tools-when-paused-in-debugger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!