Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions reference/5.0/Microsoft.PowerShell.Utility/Write-Debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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."
Expand Down
6 changes: 4 additions & 2 deletions reference/5.1/Microsoft.PowerShell.Utility/Write-Debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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."
Expand Down
8 changes: 5 additions & 3 deletions reference/6/Microsoft.PowerShell.Utility/Write-Debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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."
Expand Down