Skip to content

Commit 182669c

Browse files
ultranoobianSean Wheeler
authored andcommitted
Update Write-Debug.md (#2120)
* Added new line to powershell output Added new line to clarify that the new line is a command vs output of previous command `$DebugPreference` * Added newline break to clarify between PowerShell output and command
1 parent b34f25c commit 182669c

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

reference/5.0/Microsoft.PowerShell.Utility/Write-Debug.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ Because the value of $DebugPreference is SilentlyContinue, the message is not di
3737
### Example 2: Use the Debug parameter to override $DebugPreference
3838
```
3939
PS C:\> $DebugPreference
40-
SilentlyContinue PS C:\> Write-Debug "Cannot open file."
40+
SilentlyContinue
41+
PS C:\> Write-Debug "Cannot open file."
4142
PS C:\>
4243
PS C:\> Write-Debug "Cannot open file." -Debug
4344
DEBUG: Cannot open file.
@@ -59,7 +60,8 @@ For more information about the *Debug* common parameter, see about_CommonParamet
5960
### Example 3: Change the value of $DebugPreference
6061
```
6162
PS C:\> $DebugPreference
62-
SilentlyContinue PS C:\> Write-Debug "Cannot open file."
63+
SilentlyContinue
64+
PS C:\> Write-Debug "Cannot open file."
6365
PS C:\>
6466
PS C:\> $DebugPreference = "Continue"
6567
PS C:\> Write-Debug "Cannot open file."

reference/5.1/Microsoft.PowerShell.Utility/Write-Debug.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ Because the value of $DebugPreference is SilentlyContinue, the message is not di
3737
### Example 2: Use the Debug parameter to override $DebugPreference
3838
```
3939
PS C:\> $DebugPreference
40-
SilentlyContinue PS C:\> Write-Debug "Cannot open file."
40+
SilentlyContinue
41+
PS C:\> Write-Debug "Cannot open file."
4142
PS C:\>
4243
PS C:\> Write-Debug "Cannot open file." -Debug
4344
DEBUG: Cannot open file.
@@ -59,7 +60,8 @@ For more information about the *Debug* common parameter, see about_CommonParamet
5960
### Example 3: Change the value of $DebugPreference
6061
```
6162
PS C:\> $DebugPreference
62-
SilentlyContinue PS C:\> Write-Debug "Cannot open file."
63+
SilentlyContinue
64+
PS C:\> Write-Debug "Cannot open file."
6365
PS C:\>
6466
PS C:\> $DebugPreference = "Continue"
6567
PS C:\> Write-Debug "Cannot open file."

reference/6/Microsoft.PowerShell.Utility/Write-Debug.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ Because the value of $DebugPreference is SilentlyContinue, the message is not di
3737

3838
### Example 2: Use the Debug parameter to override $DebugPreference
3939
```
40-
PS C:\> $DebugPreference
41-
SilentlyContinue PS C:\> Write-Debug "Cannot open file."
40+
PS C:\> $DebugPreference
41+
SilentlyContinue
42+
PS C:\> Write-Debug "Cannot open file."
4243
PS C:\>
4344
PS C:\> Write-Debug "Cannot open file." -Debug
4445
DEBUG: Cannot open file.
@@ -60,7 +61,8 @@ For more information about the *Debug* common parameter, see about_CommonParamet
6061
### Example 3: Change the value of $DebugPreference
6162
```
6263
PS C:\> $DebugPreference
63-
SilentlyContinue PS C:\> Write-Debug "Cannot open file."
64+
SilentlyContinue
65+
PS C:\> Write-Debug "Cannot open file."
6466
PS C:\>
6567
PS C:\> $DebugPreference = "Continue"
6668
PS C:\> Write-Debug "Cannot open file."

0 commit comments

Comments
 (0)