Go to current executing statement in Visual Studio while Debugging

Visual StudioDebuggingKeyboard Shortcuts

Visual Studio Problem Overview


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?

Visual Studio Solutions


Solution 1 - Visual Studio

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.

Solution 2 - Visual Studio

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

Solution 3 - Visual Studio

Keyboard short cut in Visual Studio to return to current execution statement, press ALT + *

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBrijView Question on Stackoverflow
Solution 1 - Visual StudioDamien_The_UnbelieverView Answer on Stackoverflow
Solution 2 - Visual StudioeddyqView Answer on Stackoverflow
Solution 3 - Visual StudiomoglimcgrathView Answer on Stackoverflow