Commit 5eb586e
authored
Fix PSES crash on debug start when function breakpoint defined (#624)
* 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
* Add comment on why code is commented out1 parent 6b3ebc5 commit 5eb586e
File tree
1 file changed
+54
-6
lines changed- src/PowerShellEditorServices.Protocol/Server
1 file changed
+54
-6
lines changedLines changed: 54 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
618 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
619 | 633 | | |
620 | 634 | | |
621 | 635 | | |
| |||
631 | 645 | | |
632 | 646 | | |
633 | 647 | | |
634 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
635 | 669 | | |
636 | 670 | | |
637 | 671 | | |
| |||
1034 | 1068 | | |
1035 | 1069 | | |
1036 | 1070 | | |
1037 | | - | |
1038 | | - | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1039 | 1087 | | |
1040 | 1088 | | |
1041 | 1089 | | |
| |||
0 commit comments