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
Offer an setting to turn off inline break points #83018
Comments
It is a fair feature request to have a setting to turn off inline breakpoints. However I would not add it until we get more feedback like this. As for the weird breakpoint locations when you edit text that is a duplicate of https://github.com/Microsoft/vscode/issues?q=is%3Aissue+assignee%3Aisidorn+author%3Amjbvz+is%3Aclosed |
While I don't think I'd want to turn them off -- I do find them too intrusive in their current form especially since they show up in unexpected places (imo - see below) and bounce/shift when toggled. I also find it odd (even though I understand why) that there are 2 dots at the start of the line -- the toggle for all of them, and the toggle for that start of the line. But maybe the start of the line one should only show up if a column breakpoint is selected? Because otherwise it is really just a duplicate and visual noise (imo). |
@eamodio thanks for the feedback. I am open to changing this, however I would wait for more feedback still. Thanks |
The bouncing is definitely annoying, also the fact that the first breakpoint tends to shift the text by a whole tab, rather than just by the width of the breakpoint. I would say that maybe we should hide the first bp decoration when the user just set a line breakpoint, but it can also be useful to see where that breakpoint actually is, if it is not in the location where you expect. |
Yeah I would vote to hit the first BP decoration too if its for the whole line. But when it should show up, we could check to see if there is just whitespace and have it be placed without taking up space in the DOM, and only take up space if it needs too (e.g. the line has no leading whitespace) |
any updates on this? I'd like just breakpoints on the left of the line number and that's all |
I will second the notion that I would love to have them, but the jumping around is so distracting that I would be happy to at least turn them off. I have encountered quite a few strange things that were not just simple visual complaints:
I would personally prefer to right click on the row and then say "add inline breakpoints", and then it would show all those helpful hints it already does of where it could go. But generally stopping on a line is what I am looking for. Cheers! |
I would also add my vote to be able to turn this off because the line breakpoints don't always work correctly. Example: I want to break before newState is returned, but instead the only breakpoint option I have is after the return so I can't see anything. Note that the return null lower down does have the option to break before returning. |
In your case @dougleville, inline breakpoints are actually helpful because they are showing you that (for some reason) there is no valid BP location on that line before |
We will first try to improve the experience to decrease the jumping and than if people still would like a setting I would be open to add it in the future. Thanks for the feedback |
Replying for the sake of completeness - fair enough, I checked the Chrome debugger and the behavior was the same so this is confirmed not a vscode problem. Thanks @roblourens |
Another option is to have a half-transparent red background on the first letter after the breakpoint, instead of removing it completely. This way the text doesn't shift and we can still see the inline breakpoints. |
Here are some ideas for the name of the setting. The setting would be a boolean I would like to have inline breakpoint in the setting name since users asociate the breakpoint locations withe the inline breakpoints as seen in the name of this issue fyi @weinand |
I went with Fixed via 47b8f20 |
Since this setting affects the UI I would have expected to see a "show" in the settings name, e.g. |
Makes sense. Thanks! I have changed the setting name as you suggested to |
you are a fuckin legend, next time you're in Melbourne, Australia I'll buy you a beer <3 |
Idea: How about toggling BPs with a double-click? I never use BPs and find the feature excruciatingly annoying when selecting lines or when accidentally clicking the area to switch windows. I think a double-click wouldn't be so much pain for someone who uses BPs while it's an incredible relief for someone who doesn't. Completely disabling them is another solution. |
@hagemann The issue has been closed more than a month ago. If you want to get heard, I suggest that you create a new issue with your suggestion. |
I don't like my text to be shifted, also when I'm editing text in debug mode, the breakpoints can get into weird state. Try to delete or move text around the breakpoints and you can easily find this happening:
The text was updated successfully, but these errors were encountered: