问题
If we use the UI of build pipeline, we see 'enable system diagnostics' check box as given below. There is also a default variable 'system.debug'.
What is the difference between these two?
One comment here states both could be the same. But if we set system.debug is set to 'true' 'enable system diagnostics' is still unchecked.
回答1:
They both are the same. It is given here. The main purpose is to set the variable for automated runs. But it can be used for single runs too, which makes the UI checkbox, the additional duplicate feature, pointless.
It is confusing because it appears in build pipeline and not in release pipeline. Also when we run , like you said, even when the variable is set to true, the UI is still not updated(unchecked). Which might require double work(checking diagnostics too) like I did for some time.
"To configure verbose logs for all runs, you can add a variable named system.debug and set its value to true."
来源:https://stackoverflow.com/questions/60258663/azure-devops-pipeline-difference-between-system-debug-and-enable-system-diagn