What is the equivalent of pressing Ctrl+C in console, for Chrome and Firefox? While implementing various algorithms I often write some buggy (while) loop, in Javascript, that doesn’t exit, makes the browser freeze. Reloading doesn’t work, clicking little X for closing the tab doesn’t do anything, and in a while (literally) I’m outta memory, system is swapping, and I’m leaving for a coffee break.
What is the equivalent of pressing Ctrl+C in console, for Chrome and Firefox? While
Share
There is no such thing as a
Ctrl + Cfor JavaScript. The browsers that executes JavaScript are usually protective of themselves. If any JavaScript hangs, they’ll throw a dialog asking if the user wants to stop the JavaScript.The timeout duration can usually be found in the browser’s settings. You can find how to do it for FireFox here: http://kb.mozillazine.org/Dom.max_script_run_time