From 57ce7f92c42bf2c172528b3baedb0c399dc0f585 Mon Sep 17 00:00:00 2001 From: landon-l8 <137821564+landon-l8@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:27:34 -0600 Subject: [PATCH] Added Break to $WarningPreference $WarningPreference also supports 'Break' but that was not clearly specified in the documentation. --- .../About/about_Preference_Variables.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Preference_Variables.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Preference_Variables.md index b9ad443b6e77..5fdf6d8f7eae 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Preference_Variables.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Preference_Variables.md @@ -1375,6 +1375,8 @@ The valid values are as follows: - **Stop**: Displays the warning message and an error message and then stops executing. +- **Break** - Enter the debugger when an error occurs or when an exception is + raised. - **Inquire**: Displays the warning message and then prompts for permission to continue. - **Continue**: (Default) Displays the warning message and then continues