mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Debug parameter now sets debugpreference to continue (#8195)
With this commit, users who invoke a command with -Debug will no longer be presented with a prompt asking them if they want to enter a nested prompt, continue execution, or halt execution entirely. Instead, any messages sent to the debug stream will simply be sent to the debug stream and the script will continue execution.
This commit is contained in:
1 parent
60a4e2f346
commit
e721f7bbc3
5 files changed
+23
-19
No files matched your search
@@ -10,7 +10,7 @@ Describe "Stream writer tests" -Tags "CI" {
|
||||
[CmdletBinding()]
|
||||
|
||||
param()
|
||||
If ($PSBoundParameters['Debug']) { $DebugPreference = 'Continue' }
|
||||
|
||||
Write-Verbose "Verbose message"
|
||||
|
||||
Write-Debug "Debug message"
|
||||
|
||||
Reference in new issue
Block a user