Break javascript before an inline javascript redirect in Chrome

前端 未结 3 1507
[愿得一人]
[愿得一人] 2020-11-29 21:37

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

3条回答
  •  日久生厌
    2020-11-29 22:05

    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.

提交回复
热议问题