[CR #555171] The default maximum size of the JavaScript engine runtime is 20000000 bytes, or 19.07MB. Debugging large scripts or long running scripts such as a script with many loop iterations, you may encounter a memory issue.
Workaround: Configure the maximum memory size for the JavaScript engine in the Default.ini file. To configure:
Navigate to the etc directory of the installation folder and use a text editor to open the Default.ini file.
In the [Scripting] section, add:
Runtime Memory = <a new number for memory in bytes>