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?
Press Shift + F11 (or Debug > Step Out). This command resumes app execution (and advances the debugger) until the current function returns.
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.
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.
Your best bet is to do this: Try Debug -> Windows -> Breakpoints.
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.
Alt-* does take you to the current statement but it also shows you the disassembly. Use Alt-NUMERIC-*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With