Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move the debug pointer to change the execution flow in Visual Studio Code Debugger

Tags:

I have used Visual Studio 2008 to 2017, all having this feature as shown below:

enter image description here

The yellow arrow(debug pointer) which can be used to manipulate executing line(or execution flow) while debugging, thus allowing the user to move the arrow simply by using mouse.


In Visual Studio Code, the arrow is there to show the executing line as shown below:

enter image description here

But it(debug pointer) can't be manipulated or moved using mouse, to change the executing line(or execution flow) while debugging.

Is there any setting which has to be changed in Visual Studio Code to enable this feature?

like image 574
boop_the_snoot Avatar asked Sep 29 '17 09:09

boop_the_snoot


People also ask

How do I move the Debug pointer in Visual Studio?

With the debugger paused on a line of code, use the mouse to grab the yellow arrow pointer on the left. Move the yellow arrow pointer to a different point in the code execution path. Then you use F5 or a step command to continue running the app.

How do I change Debug in Visual Studio?

To set Visual Studio debugger options, select Tools > Options, and under Debugging select or deselect the boxes next to the General options. You can restore all default settings with Tools > Import and Export Settings > Reset all settings.

How do I change the run and Debug code in Visual Studio?

Once you have your launch configuration set, start your debug session with F5. Alternatively, you can run your configuration through the Command Palette (Ctrl+Shift+P) by filtering on Debug: Select and Start Debugging or typing 'debug ' and selecting the configuration you want to debug.


2 Answers

Right click on the line you want to run in the start position, and "jump to cursor".

Right click on the line you want to run, and "jump to cursor".

like image 188
Ruei-Chi Chen Avatar answered Sep 23 '22 10:09

Ruei-Chi Chen


You are looking for Set Next Statement option, which is not yet available.

Please follow this Git Issue for latest.

like image 43
Arun Vinoth - MVP Avatar answered Sep 25 '22 10:09

Arun Vinoth - MVP