ScriptCS Error Handling / Logging

I’m running octopus deploy 3.0 and wanted some information on how to log errors and handle exceptions in ScriptCS steps. It seems like the errors returned are pretty ambiguous and I would like somewhere to log the stack trace, etc. Does anyone have more information on this subject?

Thanks Brad

I think I found my answer.


Hi Brad,

Thanks for getting in touch. I’m glad you figured it out on your own! For completeness I’ve added some more information about logging from different script languages:

Also, check out the Script Console, which is an easy way to test how scripts will run on any given deployment target:

Hope that helps!