From 8d1f9eb89e5c04ba004d507ca2fb482a520777b7 Mon Sep 17 00:00:00 2001 From: Brenden Cai <ultranoobian@users.noreply.github.com> Date: Mon, 12 Feb 2018 22:12:21 +1100 Subject: [PATCH 1/2] Added new line to powershell output Added new line to clarify that the new line is a command vs output of previous command `$DebugPreference` --- reference/6/Microsoft.PowerShell.Utility/Write-Debug.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md b/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md index 151b23559ecf..e6d2291ea340 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md +++ b/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md @@ -37,8 +37,9 @@ Because the value of $DebugPreference is SilentlyContinue, the message is not di ### Example 2: Use the Debug parameter to override $DebugPreference ``` -PS C:\> $DebugPreference -SilentlyContinue PS C:\> Write-Debug "Cannot open file." +PS C:\> $DebugPreference +SilentlyContinue +PS C:\> Write-Debug "Cannot open file." PS C:\> PS C:\> Write-Debug "Cannot open file." -Debug DEBUG: Cannot open file. From 1f201d1aab5a039c767aa0cf5cc98bcbb14bf260 Mon Sep 17 00:00:00 2001 From: Brenden Cai <caibrenden+git@gmail.com> Date: Mon, 12 Feb 2018 22:38:54 +1100 Subject: [PATCH 2/2] Added newline break to clarify between PowerShell output and command --- reference/5.0/Microsoft.PowerShell.Utility/Write-Debug.md | 6 ++++-- reference/5.1/Microsoft.PowerShell.Utility/Write-Debug.md | 6 ++++-- reference/6/Microsoft.PowerShell.Utility/Write-Debug.md | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/reference/5.0/Microsoft.PowerShell.Utility/Write-Debug.md b/reference/5.0/Microsoft.PowerShell.Utility/Write-Debug.md index 08bd4472a2a3..e3533d76c5ce 100644 --- a/reference/5.0/Microsoft.PowerShell.Utility/Write-Debug.md +++ b/reference/5.0/Microsoft.PowerShell.Utility/Write-Debug.md @@ -37,7 +37,8 @@ Because the value of $DebugPreference is SilentlyContinue, the message is not di ### Example 2: Use the Debug parameter to override $DebugPreference ``` PS C:\> $DebugPreference -SilentlyContinue PS C:\> Write-Debug "Cannot open file." +SilentlyContinue +PS C:\> Write-Debug "Cannot open file." PS C:\> PS C:\> Write-Debug "Cannot open file." -Debug DEBUG: Cannot open file. @@ -59,7 +60,8 @@ For more information about the *Debug* common parameter, see about_CommonParamet ### Example 3: Change the value of $DebugPreference ``` PS C:\> $DebugPreference -SilentlyContinue PS C:\> Write-Debug "Cannot open file." +SilentlyContinue +PS C:\> Write-Debug "Cannot open file." PS C:\> PS C:\> $DebugPreference = "Continue" PS C:\> Write-Debug "Cannot open file." diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Write-Debug.md b/reference/5.1/Microsoft.PowerShell.Utility/Write-Debug.md index 08bd4472a2a3..9ae2af487409 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Write-Debug.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Write-Debug.md @@ -37,7 +37,8 @@ Because the value of $DebugPreference is SilentlyContinue, the message is not di ### Example 2: Use the Debug parameter to override $DebugPreference ``` PS C:\> $DebugPreference -SilentlyContinue PS C:\> Write-Debug "Cannot open file." +SilentlyContinue +PS C:\> Write-Debug "Cannot open file." PS C:\> PS C:\> Write-Debug "Cannot open file." -Debug DEBUG: Cannot open file. @@ -59,7 +60,8 @@ For more information about the *Debug* common parameter, see about_CommonParamet ### Example 3: Change the value of $DebugPreference ``` PS C:\> $DebugPreference -SilentlyContinue PS C:\> Write-Debug "Cannot open file." +SilentlyContinue +PS C:\> Write-Debug "Cannot open file." PS C:\> PS C:\> $DebugPreference = "Continue" PS C:\> Write-Debug "Cannot open file." diff --git a/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md b/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md index e6d2291ea340..26d068f15797 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md +++ b/reference/6/Microsoft.PowerShell.Utility/Write-Debug.md @@ -61,7 +61,8 @@ For more information about the *Debug* common parameter, see about_CommonParamet ### Example 3: Change the value of $DebugPreference ``` PS C:\> $DebugPreference -SilentlyContinue PS C:\> Write-Debug "Cannot open file." +SilentlyContinue +PS C:\> Write-Debug "Cannot open file." PS C:\> PS C:\> $DebugPreference = "Continue" PS C:\> Write-Debug "Cannot open file."