dotnet / dotnet/macios

Add Debug conditional for Write-Host logging in VSTS Powershell scripts

Open
#8,585 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

https://github.com/xamarin/xamarin-macios/pull/8327

We have a lot of debugging "print" statements in Powershell files. The pipeline already has access to the following global variable:

```
if [[ "$SYSTEM_DEBUG" == "true" ]]; then
DEBUG="-d"
else
DEBUG=""
fi
```

It should be easy to incorporate a check for the variable into Powershell code so that we do not always execute debugging statements.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.