-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Breaking API removal in #10338 #10799
Copy link
Copy link
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-Debuggingdebugging PowerShell scriptdebugging PowerShell script
Milestone
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-Debuggingdebugging PowerShell scriptdebugging PowerShell script
Type
Fields
Give feedbackNo fields configured for issues without a type.
#10338 removed the
ScriptDebugger.SetBreakpoints()API, allowing .NET code to set breakpoints.Although previous PowerShells didn't have a convenient way to create a breakpoint object, removing this API means there's no way to avoid reflection when setting a breakpoint in a PowerShell module targeting anything prior to PS 7.
This is an issue for PowerShellEditorServices, where good debugging APIs are already scarce. A break like this will crash PSES unexpectedly (since PSStandard doesn't pick it up) and the only fix is to use reflection to find the right call at runtime (nullifying the reason to use PSStandard).