Developing and debugging MID server script include scripts, especially to CMP/Cloud Provisioning and Governance,
can be a little tricky and slow since your native logging is done with the ms.log()
function
and you can't see the logs from the ServiceNow instance,
but instead you need to grab the logs from MID server.
Another problem is the script/function execution and context management (login to cloud provider, etc.).
Let's say you need to develop new REST API based functions (day 2 action, like change CPU and memory of a VM) to VMware. How would you develop and test your code?