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 151b23559ecf..26d068f15797 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. @@ -60,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."