Visual Studio Debug options: Edit and Continue and Step Back
Posted: Tue Nov 05, 2019 3:24 pm
I thought I asked this earlier but couldn't find it back, also not in the NG's. This is what I found, is this correct:
Visual Studio Edit and Continue
Theory: This needs to be enabled in Options/Debugging, General first. It should allow you to change a line of code and continue with that line of code.
What I see: I can indeed make a change during debugging, then select Continue or Step Into from the debug menu, but VS warns me that I am debugging different code than is currently displayed - and doesn't do anything with the changes.
Visual Studio Step Back
Theory: During debugging it is possible to select Set Next Statement from the right mouse menu, also when this is earlier in the code
What I see: I can indeed make the program continue in an earlier line of code, but the variables are not changed back to the state they were at that line so the rerun may have limited value.
I suspect that when using the VS Enterprise Version and you set up Debug/Intellitrace, that it also restores the state of variables.
Am I right in the above statements?
Dick
Visual Studio Edit and Continue
Theory: This needs to be enabled in Options/Debugging, General first. It should allow you to change a line of code and continue with that line of code.
What I see: I can indeed make a change during debugging, then select Continue or Step Into from the debug menu, but VS warns me that I am debugging different code than is currently displayed - and doesn't do anything with the changes.
Visual Studio Step Back
Theory: During debugging it is possible to select Set Next Statement from the right mouse menu, also when this is earlier in the code
What I see: I can indeed make the program continue in an earlier line of code, but the variables are not changed back to the state they were at that line so the rerun may have limited value.
I suspect that when using the VS Enterprise Version and you set up Debug/Intellitrace, that it also restores the state of variables.
Am I right in the above statements?
Dick