Todd Lehmann
Todd Lehmann
Thanks. I will try that next time.
Write-Debug Prompts for Confirmation Stopping All Script Execution When Using -Debug For Some Reason
Okay... Why? What use case demands that all script execution stop when emitting debug messages? How does that use-case compare with the use case of being able to use -Debug...
Write-Debug Prompts for Confirmation Stopping All Script Execution When Using -Debug For Some Reason
Oh also, can you define "By design"? When I hear "by design" I think there is a specification somewhere that says "when you use -Debug we're going to inquire for...
Write-Debug Prompts for Confirmation Stopping All Script Execution When Using -Debug For Some Reason
Oh. Yes, it's usually an excellent indicator. Whoops. :\ The reasoning is actually there as well, which is awesome. "The Debug parameter overrides the value of the $DebugPreference variable for...
Write-Debug Prompts for Confirmation Stopping All Script Execution When Using -Debug For Some Reason
And what about the fact that "A" for "Yes to All" doesn't actually work? e.g. if I have multiple write-debug statements and hit "A" for the first one, I am...
Write-Debug Prompts for Confirmation Stopping All Script Execution When Using -Debug For Some Reason
I'll open up a couple User Voice request. Danke.
This is what we found out. It was an RTFM moment. If you look at the Get-Help for the -ModuleName parameter, it explains this: `Optional string specifying the name of...
Found out this was because -ModuleName is the name of the module that is calling the mocked command, not the module in which the command resides. Thanks!
Hi all, Has this been released? If not is there a date?
That's what I'm using now. Thanks