In visual studio, is there a way to step back to see what the few lines executed before were? I hit an unhandled exception in my code, and what I would like to do is step back (without re-executing) so I could see the class/method that called the method that threw the exception. This is in C#
The recent updates of Visual Studio 2017 (version 15.5 Preview) comprise with several sets of new features and improvements. Once of such great enhancement is “step-back” while debugging. Now, you can perform a step-backward and forward while debugging your code with IntelliTrace Debugging.
Press Shift + F11 (or Debug > Step Out). This command resumes app execution (and advances the debugger) until the current function returns.
You can do step-back to previous line in VS code via the use of new Step Backward icon while debugging your code with IntelliTrace Debugging. Now you can go previous line while debugging with the help of step backward icon.
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.
Debug -> Windows -> Call Stack (Ctrl + Alt + C is default bindings (I think))
Will show you the history of execution, you can double click events to go to definition, however you cannot step back in code
But you can drag your little yellow arrow to another point in the code to re-execute some code, again this will not change what has already been executed
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