问题
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:
- Go to the Elements tab.
- Right-click on any visible element (i.e. not hidden,
display:none
, etc.). - Choose the "Scroll Into View" context menu entry.
- 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