You can throw an error and the browser will stop
throw new Error('stop for debug');
In SpiderMonkey you can do:
sleep(9999); // Sleep for many seconds
Copyright © 2008-2020, dave Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.