How can I debug scripts and code that is dynamically generated and executed on the servers?
If you are using the embedded Velocity templates to have IMOD dynamically generate scripts or code copy them and execute them on the specified server location during start-up or in response to an event, you need to rely tools available in language used for debugging. E.g. output and logs of the commandline scripts can be piped to a file and that file can be accessed from the SSH console to review the error/logs during execution.