-
Notifications
You must be signed in to change notification settings - Fork 511
Breakpoints don't remove from Integrated Console #981
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
Comments
This is how the VSCode debug protocol works ATM. The PS integrated console doesn't get notified of breakpoints until the debugger is started. One of the messages it sends as part of debugger startup is a setBreakpointsRequest. There is no debugger protocol event from the debugger to vscode to clear breakpoints and in the case you specify in step #6 above - the debugger isn't running at that point anyway. That's not to say we couldn't add a PowerShell extension specific message and have the extension clear the breakpoint, assuming there is an API to do that. cc @weinand |
@rkeithhill The first behavior where the breakpoints don't show up until the debugger has started is not necessarily a big deal, but I thought it might help illustrate the problem. The second behavior described in step 6 kind of makes sense based on your description. Ultimately it would be great if the Integrated Console and the editor matched up on all breakpoints regardless of where they are set. |
Like Keith said, this is a general issue with how VS Code's debug protocol works. I'm tracking a possible solution with issue #625, will close this one in favor of that. |
System Details
Issue Description
Repro
Get-PSBreakpoint
Get-PSBreakpoint
The breakpoint should be removed from the Integrated Console when removed from the debugger pane. This issue does not occur if I configure "powershell.debugging.createTemporaryIntegratedConsole" to "true."
1501505900-66da0c65-ddbd-4f72-b609-e10b95f6686a1501504221833.zip
The text was updated successfully, but these errors were encountered: