Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there something similar to "Set Next Statement" available in Visual Studio code?

Usually while debugging C++ code in Microsoft Visual Studio 2015 I find the "Set Next Statement" very useful. Wanted to check if something similar to "Set Next Statement" is also available in Visual Studio code debugger while debugging a Node js application where I can change the statement where I want my next execution to begin during debugging.

like image 607
Amit Rastogi Avatar asked Jul 27 '18 07:07

Amit Rastogi


1 Answers

Yes, this feature is available under the name "Jump to Cursor":

https://code.visualstudio.com/updates/v1_36#_jump-to-cursor

It will become available as an "Set next statement" alias:

https://github.com/microsoft/vscode-python/issues/9947#issuecomment-610631969

As of now,

No.

This is a much-requested feature,

  • https://github.com/Microsoft/vscode/issues/12514
  • https://github.com/Microsoft/vscode-cpptools/issues/1025

and some work with that aim has been done already:

  • https://github.com/Microsoft/ptvsd/issues/18
  • https://github.com/Microsoft/vscode-debugadapter-node/issues/28

But the feature is not available yet in VS Code.

like image 163
bers Avatar answered Oct 01 '22 09:10

bers