Forked from carcinocron/debugger pause beforeunload
Created
January 17, 2022 19:49
-
-
Save xnohat/b73b1ddb57759ab5ee99b5f1696d7f14 to your computer and use it in GitHub Desktop.
Chrome: pause before redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Run this in the F12 javascript console in chrome | |
| // if a redirect happens, the page will pause | |
| // this helps because chrome's network tab's | |
| // "preserve log" seems to technically preserve the log | |
| // but you can't actually LOOK at it... | |
| // also the "replay xhr" feature does not work after reload | |
| // even if you "preserve log". | |
| window.addEventListener("beforeunload", function() { debugger; }, false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment