Skip to content

Debug parameter now sets debugpreference to continue #8195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 30, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
CodeFactor changes
  • Loading branch information
KirkMunro authored Nov 7, 2018
commit 175e7ca8fd499520fbefaa673f8ef66cd6e099ca
2 changes: 2 additions & 0 deletions src/System.Management.Automation/engine/MshCommandRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2925,6 +2925,7 @@ internal ActionPreference DebugPreference
{
return _debugPreference;
}

if (IsDebugFlagSet)
{
return Debug ? ActionPreference.Continue : ActionPreference.SilentlyContinue;
Expand All @@ -2945,6 +2946,7 @@ internal ActionPreference DebugPreference

_isDebugPreferenceCached = true;
}

return _debugPreference;
}
set
Expand Down