Step back while debugging a C program in vscode

Viewed 2591

I feel like there should be an answer to this question somewhere, but even after half an hour of searching, I was unsuccessful. There are several documents about stepping back in Visual Studio, but I use vscode more often than Visual Studio and would like to know if this is possible in vscode, too. Thank you.

2 Answers

You can do step-back to the previous line in VS code via the use of the new Step Backward icon while debugging your code with IntelliTrace Debugging.

First, you need to Enable the IntelliTrace Debugging feature in your Visual studio code. To do this follow the below step

Step 1: Go to Tools > Options > IntelliTrace > General > IntelliTrace events and snapshots

Now you can go to the previous line while debugging with the help of the step backward icon.

Related