I\'m viewing a page that has an inline javascript redirect (window.location = \"/anotherpage\"). I want to load the page in Chrome but have the redirect line d
window.location = \"/anotherpage\"
Developer Tools -> Sources -> Event Listener Breakpoints (on the right sidebar) -> Load -> check unload
This will make debugger break on unload event which is dispatched before navigation.