Script execution starts when the Debug » Run Script command is invoked. Hex Editor Neo performs the following actions when script starts executing:
Main script body is executed. If main code launches any non-asynchronous functions, they are completely executed. Any non-caught exceptions are displayed in the Output Window. All asynchronous functions as well as other delayed code may not complete execution at the time the main script body execution is finished. Uncaught exceptions terminate the script execution but do not put it into the stopped state. Delayed functions or asynchronous continuations may still continue to run.
Any delayed execution code as well as asynchronous continuations may execute at any time until the script is stopped.
Debug » Stop Script command must be used to stop script execution. This command completely stops script code execution and cancels any outstanding asynchronous continuations or delayed code. The script may also stop itself using the stopScript function.