Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Go to current executing statement in Visual Studio while Debugging

While debugging in Visual Studio sometimes we wander far away from the current executing statement. We could tread our way back using Call Stack window. Is there a shortcut to go back to the current executing statement in Visual Studio?

like image 470
Brij Avatar asked Jan 03 '14 10:01

Brij


People also ask

How do I view execution steps in Visual Studio?

Press Shift + F11 (or Debug > Step Out). This command resumes app execution (and advances the debugger) until the current function returns.

How do I go back to previous line while debugging in Visual Studio?

So, if you've just taken a step in live debugging (F10 or F11), you can use the Step Backward button to quickly navigate to the previous step. This will automatically put Visual Studio in Historical debugging mode, at the line of code you've stepped back to.

How do I go back while debugging?

Open Debug Configuration -> Debugger -> Enable Reverse Debugging at startup . Than you can press shift+F5 or shift+F6 for step back like F5 or F6 for step forward.

How do I jump to the next breakpoint in Visual Studio?

Your best bet is to do this: Try Debug -> Windows -> Breakpoints.


2 Answers

In the Debug Context Menu, there's a "Show Next Statement" option that should do what you want.

If you've got the default General Development Settings applied, the default key binding for this is Alt+Num *. To see what it is in your settings, go to Tools -> Options -> Environment -> Keyboard, and find Debug.ShowNextStatement. You can, of course, also then change the key binding to one of your preference.

like image 113
Damien_The_Unbeliever Avatar answered Sep 24 '22 00:09

Damien_The_Unbeliever


Alt-* does take you to the current statement but it also shows you the disassembly. Use Alt-NUMERIC-*

like image 44
eddyq Avatar answered Sep 21 '22 00:09

eddyq