Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

inspect script in chrome debug without losing ability to scroll webpage

When I have some breakpoints set up in a script google chrome removes the ability to scroll the webpage, saying at the top of the screen Paused in debugger. Is there a way to disable this so that I can look at elements in various parts of the page, while also looking at the script in the debugger?

like image 874
1252748 Avatar asked Mar 11 '13 17:03

1252748


2 Answers

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)

like image 60
Anton Avatar answered Nov 15 '22 11:11

Anton


You can click on the Elements tab and then hover over the HTML to the element you are interested in and right click to "Scroll into view". Not the most natural and fast, but it works...

like image 36
Breiz Avatar answered Nov 15 '22 11:11

Breiz