-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Debugger: Put "Run To Cursor" Into Breakpoint Context Menu #123872
Comments
@hediet thanks for this suggestion, however please note that we show the I understand you are always in debugging mode and I think we should improve the experience for "Always Debugging" mode. For this I have created #123873 For now I would probably not change this to not anger some users that are used to it. Especially since I hope we will have customisable context menus in the future. However I am open for ideas. fyi @connor4312 @weinand |
I wouldn't neccessarily remove it from the editor context menu, but just add it to the breakpoint context menu to improve its accessibility. My idea is not to shorten the editor context menu, but to make that feature easier to use. I use that feature quite often (and should probably assign a keybinding to it), but the very long context menu makes it hard to quickly execute that action (especially when my focus is on debugging the problem, not finding that context menu entry). The Chrome dev tools have an even more efficient approach - while debugging, you can simply Ctrl-Click on a statement to continue to it. That does not play very well with VS Codes "Go To Definition" though. |
@hediet oh you would simply add it to the other context menu. Let's see what @connor4312 and @weinand think |
Adding it to the breakpoint (gutter) context menu sounds good to me. Honestly I didn't even know that context menu entry existed, I never right click in the editor 😛 |
If we were to add it, I would put a separator after the breakpoint actions. And have the "Run to Line" at the bottom. |
I can also try to implement it if we go for it! Shouldn't be that hard. |
Code pointer:
|
Do you think the logic in |
@hediet that might work. However I try to keep the |
Leaving this assigned to you @hediet as you plan to do a PR. |
There's a bit of breakpoint flashing when you do run to line but the context menu appears to work so marking this as verified |
Currently, "Run To Cursor" is in a very long context menu:
I think it would make sense to add "Run To Cursor" to the context menu for adding breakpoints:
This new entry should be called "Run To Line".
Pro:
Contra:
The text was updated successfully, but these errors were encountered: