Skip to content
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

Synchronize breakpoints between PowerShell and DAP #1795

Open
andyleejordan opened this issue May 6, 2022 · 0 comments
Open

Synchronize breakpoints between PowerShell and DAP #1795

andyleejordan opened this issue May 6, 2022 · 0 comments
Labels
Area-Debugging Issue-Enhancement A feature request (enhancement).

Comments

@andyleejordan
Copy link
Member

andyleejordan commented May 6, 2022

We unfortunately clear all existing breakpoints in the PowerShell session on the initialization of the debug server, essentially overwriting them with the breakpoints set in the UI:

// Clear any existing breakpoints before proceeding
await breakpointService.RemoveAllBreakpointsAsync().ConfigureAwait(false);

and in the attach handler:

// Clear any existing breakpoints before proceeding
await _breakpointService.RemoveAllBreakpointsAsync().ConfigureAwait(continueOnCapturedContext: false);

Instead, we should find a way to properly synchronize the breakpoints. As they're set in the console, we should update the DAP, and vice versa.

@andyleejordan andyleejordan added Issue-Enhancement A feature request (enhancement). Area-Debugging labels May 6, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label May 6, 2022
@andyleejordan andyleejordan removed the Needs: Triage Maintainer attention needed! label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debugging Issue-Enhancement A feature request (enhancement).
Projects
Status: In Progress
Development

No branches or pull requests

1 participant