Supported Node.js® Command line Options
The following command line options have been verified to work with the WinCC OA JavaScript Manager for Node.js:
- --cpu-prof
- --cpu-prof-dir
- --cpu-prof-name
- --diagnostic-dir
- --env-file
- --expose-gc
- --heap-prof
- --heap-prof-dir
- --heap-prof-name
- --inspect[=[host:]port]
- --inspect-brk[=[host:]port]
- --max-old-space-size
- --report-dir
- --report-filename
- --report-on-fatalerror
- --report-uncaught-exception
Note: 
            This list will be extended with time.
Other options can be used at your own risk. Please note that command line options that rely on exception, exit or signal handling might not be compatible with the WinCC OA JavaScript Manager for Node.js.
For more information about the Node.js® command line interface, see the official documentation: https://nodejs.org/docs/latest-v20.x/api/cli.html
Note: 
        The length of the command line options string that can be specified for a manager
                in PMON is restricted. If not all command line options fit, it is possible to use
                
--env-file and put more command line options into a text file with a
                    NODE_OPTIONS line. For example, you can create a file called
                    nodeOptions.env in the data directory of your project with the
                following contents:
                NODE_OPTIONS='--report-on-fatalerror --report-dir=C:/WinCC_OA_Proj/MyProject/log/ --report-filename=MyManagerReport.json'--env-file=data/nodeOptions.env my-script.js