How to stop an infinite loop in Chromium

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.

  1. Open DevTools.
  2. Open the Sources panel.
  3. Click Pause. The button changes to Resume Script Execution.
  4. Click and hold Resume Script Execution. Then choose Stop Current JavaScript Call.

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! 🙏