sometimes i use debug code to alert something in javascript (for example, matching something in regular expression), but forget a modifier and and the alert is in an infinite loop (or if the loop matches the pattern 300 times). If using Firefox, the alert keeps on coming out, and there is no way to even close the tab, the window, or the app.
If I force exit, it will close all the tabs and even other windows of Firefox... is there actually a way to stop the loop more gracefully?