You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix PSES crash on debug start when function breakpoint defined
Fixex PowerShell/vscode-powershell#1159
When VSCode passes us a breakpoint to set, we normally set
a flag to indicate "setBreakpointInProgress" so that when
the DebugService_BreakpointUpdated event is fired, we can
tell that we initiated it instead of the user using Set-PSBreakpoint
to set a breakpoint. Well, the code that handled function
breakpoints msgs sent by VSCode was not setting that flag.
Also, when the user does use Set-PSBreakpoint -Command
there is no debug protocol event for function breakpoints
so we need to ignore this type of breakpoint set by the user
until the debug protocol support it. See https://github.com/Microsoft/vscode-debugadapter-node/issues/157
0 commit comments