-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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 does not support "Move to line" #25653
Comments
@o-lim Which extension do you use for debugging ? |
I use the Microsoft C/C++ extension |
@o-lim if I understand your feature request correctly we already support this, it is called Run To Cursor and can be found in the context menu or the command palette |
@isidorn "Move to line" can be used to set the PC (Program Counter) to any location without executing the code between the current location and the destination. So you can even go backward with this. "Run To Cursor" can only go forward and executes everything in between. The DAP has support for this with the "GotoRequest" but we do not yet have the UI. |
@weinand got it, thanks for the explanation |
any update on this? I would love this feature instead of comment toggling my code. |
Any update about this? PyCharm does offer this functionality with its "Jump to Cursor" from 2017 |
Any update on this feature? |
Any update on when this feature would be added? |
No, but I will propose to add this for the next planning round. |
A modest 2-stage proposal: Stage 1:
Stage 2:
|
@isidorn you might want to look into C#'s implementation of their "Set Next Statement" action: https://github.com/OmniSharp/omnisharp-vscode/blob/52794d3b5b188f5585f02bad68758092bcc66a1a/src/coreclr-debug/setNextStatement.ts#L10 |
This is done now. We have a Jump to Cursor in the command palette and the context menu. Since this is now generally supported in VSCode. The C# extension can remove their |
@isidorn excellent! I opened dotnet/vscode-csharp#3117 to track removing the C# extension's custom command. What version of VS Code has the new command? I couldn't find your PR. |
@gregg-miskelly thanks a lot. The current 1.36.0 insiders has my changes. |
The VSCode debugger interface does not allow the user to update the current PC (Program Counter) to a specific line in a function. This is very useful, especially when you want skip certain instructions or re-run a function you accidentally stepped over.
The text was updated successfully, but these errors were encountered: