Azure Devops Pipeline : Difference between system.debug and 'Enable system diagnostics'

匆匆过客 提交于 2020-03-04 23:09:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!