If you’ve been programming for even just a little bit, you’ve undoubtedly executed an infinite loop by mistake. Chrome 67, released in April 2018, added the ability to stop an infinite loop in DevTools. Here’s how.
- Open DevTools.
- Open the Sources panel.
- Click . The button changes to .
- Click and hold . Then choose .
Full credit goes to the Stop infinite loops section of What's New In DevTools (Chrome 67) on Google Developers, written by Kayce Basques. They also put up a video to help you.
I actually use Firefox, but I don’t know if it offers a similar feature. If you know how, please email me and I’ll update this post! 🙏