-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Multiple column breakpoints that get folded together remain "duplicated" #25389
Comments
I guess we could remove duplicate breakpoints (those that have the same line & column) however should this be done on the adapter side or on the vscode side. fyi @weinand |
I don't think the adapter can remove breakpoints. It can only return a location for them. It would be nice for VS Code to de-dupe but we have to think about the UX in the case where a user sets a BP in some location, and the adapter returns a location that already exists. It could look like the BP just disappeared or failed to be set. When we show a dupe in the bp list, the user can figure out what happened, although it's still not really obvious. This happens a lot when setting multiple column BPs on a line. |
After discussing with @weinand we have two models of handling duplicate brekapoints
We decided to go with the second approach for now and if we see users complaing we can reconsider to go back to the first option |
What will they see when a breakpoint is set, and it's moved to the same location as another? If it looks like nothing happened, that might be confusing. |
@roblourens There will be a slight flicker after which it looks like nothing happened. Yes, this might be confusing but I suggest we wait for bugs from users. |
Testing #25194
Have the following source code:
Use
Shift+F9
to add N breakpoints, in between each letter on the fib line (about 100). Use https://nodejs.org/download/nightly/v8.0.0-nightly201703249ff7ed23cd/Press play without a debug configuration. Notice that the breakpoints have been folded together in the editor, and pressing F5 acts as if there would be a single breakpoint at a position, but the breakpoint list shows many "duplicated" breakpoints:
The text was updated successfully, but these errors were encountered: