You can throw an error and the browser will stop
'stop for debug'
In SpiderMonkey you can do:
// Sleep for many seconds
Copyright © 2008-2023, 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.