Search code examples
visual-studio-2010visual-studiovisual-c++visual-studio-debugging

Debugger always saves my project and I can't step back


I often need to return to a previous milestone. There is a vicious cycle: my error is revealed only during debugging, but I can't step back because the debugger has saved my project.

In simple projects I always used to make a copy of my cpp file (just keep ctrl and drug your file a bit).

But now projects has become more complicated (with header files). I have tried to use save solution as. But it seems as if it is just renaming the sln file without making a copy of the whole project.

So, what shall I do? Copy the whole project as I did with the file?

The question seems a bit clumsy but it really troubles me: what elegant decision is there?


Solution

  • If you are using vs 2010, you can disable saving on build event from Tools>Options>Projects and Solutions>Build and Run