-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Support StepInTarget #90793
Comments
@weinand please comment on current status and possible plans |
Surfacing Debug Adapter Protocol features in the VS Code debugger UI is a continuous goal. But it has lower priority and we do not yet know in which milestone we'll add the feature. |
In April we will investigate how we could support this feature in VS Code. Original feature request |
After reviewing the original request and the VS UI I suggest the following implementation in VS Code: The UX is a context menu item "Step Into" with submenus actions for all available targets. The "Step Into" menu item is only available if there is a current stack frame selected in the CALL STACK view (and there is a yellow or green execution highlight in the the editor). How this looks in VS: How does the UI interact with the DAP:
Ideally the @isidorn does this make sense? |
@weinand this overall makes sense. Some comments / feedback:
|
Looks great! Two thoughts: While the context menu thing is nice, it also is pretty difficult to access, I think: right click, then you need to move the mouse to the right item in the context menu etc. Could (as an additional option) the button for the step-in option in the debug toolbar be modified to look like a typical Word button: where the right part of the button opens a menu that would show the step-in targets? That could obviously also be added in a later iteration. The second point is re the distinction of individual step-in targets. Say you have a line of code like |
@davidanthoff we can also add the command to the quick pick so that users can always trigger it via a keybdining. I do not like the idea of adding it to the debug toolbar since I think it will add unnecessry complexity, however if you feel that is the right way you can always contribute to it from your extensions since the debug toolbar is open to contributions. |
@isidorn, @davidanthoff thanks for the feedback.
|
One additional observation: it does not make a lot of sense if the |
@weinand context menu is constructed once the user clicks. However we have to register the actions and entries staticily. Since the entries are open ended due to stepInTargets this does not really work. The only way in our UX to show open ended things is quick pick afaik. |
Interesting use-case for dynamically computed context menus/submenus. Maybe add your support to my proposal at #9827 (comment)? |
@weinand yes this looks like a good fit, good idea. |
@isidorn I've added support to Mock Debug for:
|
We now support step into targets. Here's how the UX looks We only show this action in the context menu when the debug supports step into targets capability and only when debug session is stopped. |
I plan to write a test plan item so we can test this out. |
Awesome, we'll try to test this out for Julia! |
Great, let us know how it goes. |
This is really a combined question and feature request: my understanding is that currently VS Code doesn't use the StepInTarget stuff?
If so, it would be great if UI for that could be added, it seems super useful :)
The text was updated successfully, but these errors were encountered: