-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Restore SetBreakpoints API
#11622
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
Restore SetBreakpoints API
#11622
Conversation
I spoke to @daxian-dbw about this back when I implemented #11312 and we decided that that breakage was fine. |
Well it's not mutually exclusive -- perhaps we can have both? Also, it feels like such a decision should be documented in either the PR or the extended commit message. |
|
Yeah I thought that was captured but I guess not. I'll defer to @daxian-dbw for the right call here. I'm fine either way. Happy to add a comment on my old PR calling out the break. |
|
I agree to have overloads. |
src/Microsoft.PowerShell.Commands.Utility/commands/utility/Set-PSBreakpoint.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Utility/commands/utility/Set-PSBreakpoint.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Utility/commands/utility/Set-PSBreakpoint.cs
Outdated
Show resolved
Hide resolved
ca802ba to
b06bbe4
Compare
|
Please review @PaulHigin |
src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs
Show resolved
Hide resolved
TravisEz13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as maintainer
* Restore SetBreakpoints API * Remove default values in API methods * Fix inheriting APIs * Correct further comments * Fix breakpoint API use issues * Fix breakpoint API tests # Conflicts: # test/powershell/SDK/Breakpoint.Tests.ps1
|
🎉 Handy links: |
#11312 changed the
SetBreakpoint()API in a breaking way. This PR restores the original API while continuing to make the new one available.Tooling will be impacted by not crashing when targeting the
SetBreakpointsAPI across PowerShell versions.NOTE #11312 adds default parameters to other APIs (not broken since they were only added in the 7.0 timeframe). For compatibility it would be favourable to turn those into overloads instead.
Services #11619.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.