title: How do you debug Azure DevOps YAML file?
body: <p>There are 3 ways to write Azure DevOps builds, as I can see it:</p>
  
  <ol>
  <li>Add tasks using GUI for every little thing</li>
  <li>YAML</li>
  <li>A very few tasks, most of the work is delegated to Powershell. Only use tasks for things like Publish symbols or tests.</li>
  </ol>
  
  <p>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:</p>
  
  <ol>
  <li>Does not communicate the build structure</li>
  <li>No detailed timeline</li>
  </ol>
  
  <p>It is possible to address the latter through dedicated VSTS logging commands, but this seems tedious.</p>
  
  <p>I am not considering the first option serious, because the build is not treated as code.</p>
  
  <p>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.</p>