There are 3 ways to write Azure DevOps builds, as I can see it:
- Add tasks using GUI for every little thing
- YAML
- A very few tasks, most of the work is delegated to Powershell. Only use tasks for things like Publish symbols or tests.
So far I am a fan of the last way because it allows me to debug most of my build logic locally. However, there are downsides:
- Does not communicate the build structure
- No detailed timeline
It is possible to address the latter through dedicated VSTS logging commands, but this seems tedious.
I am not considering the first option serious, because the build is not treated as code.
YAML option is very intriguing, but how do I debug it locally? So, I can debug various pieces when they call my powershell scripts, but is there a way to debug it really? Like running locally, I do not hope to place breakpoints inside the YAML, but being able to break inside the scripts (without ReadHost) would be terrific.
