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. Visual Studio takes snapshots of each breakpoint while debugging and allows us to take a step back with the previous state of data.
![Step Backward & Forward While Debugging](https://i0.wp.com/dailydotnettips.com/wp-content/uploads/2017/10/Step-Backward-and-Forward-Debugging.jpg?resize=686%2C803&ssl=1)
You can check out the Snapshot events captured during debugging inside Diagnostic tools and navigate to the specific breakpoint by selecting the event as well.
![Debugging Events](https://i0.wp.com/dailydotnettips.com/wp-content/uploads/2017/10/Debugging-Events.jpg?resize=644%2C247&ssl=1)
.
When You are stepping back or forward, the snapshot holds the debugging state data for each state. You can inspect the different state’s data using Watch or Autos Window.
![Debugging State Values](https://i0.wp.com/dailydotnettips.com/wp-content/uploads/2017/10/Debugging-State-Values.jpg?resize=783%2C272&ssl=1)
To enable this feature, from the main menu go to Tools > Options > IntelliTrace > General and select “IntelliTrace events and snapshots”
![Enable Step Back Debugging](https://i0.wp.com/dailydotnettips.com/wp-content/uploads/2017/10/Enable-Step-Back-Debugging.jpg?resize=783%2C313&ssl=1)
Check out Visual Studio 2017 version 15.5 – Preview Release Notes for more details.
Hope this helps !
Pingback: Dew Drop - October 19, 2017 (#2585) - Morning Dew