Subj : Re: Rollback Functions To : comp.programming From : Dave Date : Wed Oct 12 2005 11:48 am Jon Harrop wrote: > Phlip wrote: > >>Research "Test Driven Development". Prevention is better than a cure. > > > Better still, ditch "test driven development" and use OCaml for its static > checking to avoid most of the problems in the first place and its > time-reversible debugger that already implements Yao's suggestion. > Switching to a different language won't stop bugs happening. A company I worked for a few years ago analysed a project at the end of its development cycle that was written half in C and half in Ada. The study revealed NO SIGNIFICANT DIFFERENCE in the number and complexity of bugs in the C and Ada halves. Some debuggers already implement rollback; not Visual Studio, unfortunately, afaik. It could sometimes really help when stepping through stuff to be able to back up a few steps and rerun them, and the only way of doing that at present is to set a breakpoint back a bit, then restart the debug, which is tedious. .