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.
@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:
we add a new "Jump to Cursor" context menu action (which aligns nicely with "Run to Cursor").
Stage 2:
Optional more fancy UI:
@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.
For the "more fancy UI" I have created a follow up item https://github.com/microsoft/vscode/issues/75505
Since this is now generally supported in VSCode. The C# extension can remove their Set Next Statement command @gregg-miskelly
Also ping @wardengnaw @pieandcakes since not sure if C++ might support this.
Also @rkeithhill and @DonJayamanne for powershell and python.

@isidorn excellent! I opened https://github.com/OmniSharp/omnisharp-vscode/issues/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 next stable (in 3 weeks) will also have it.
Most helpful comment
This is done now. We have a Jump to Cursor in the command palette and the context menu.
For the "more fancy UI" I have created a follow up item https://github.com/microsoft/vscode/issues/75505
Since this is now generally supported in VSCode. The C# extension can remove their
Set Next Statementcommand @gregg-miskellyAlso ping @wardengnaw @pieandcakes since not sure if C++ might support this.
Also @rkeithhill and @DonJayamanne for powershell and python.